Repository navigation
feat(tui): advance checked exercises after a countdown - #171
Merged
Merged
Conversation
Complete #129 on current dev while preserving autosave and revert handling. Remove only standalone marker comment tokens, retain the submitted text and run identity through worker callbacks, and ignore stale results. Cancel the countdown when editing resumes. Keep core completion-marker semantics intact. Add regression coverage for multiline strings, malformed text, in-flight edits, cancelled workers, and marker text that cannot be removed. Record current countdown and completion captures from the installed wheel. Co-authored-by: Radha Prajapath <radha.prajapath@everestfleet.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
abhiksark
marked this pull request as draft
November 5, 2026 08:19
Use the tokenizer newline boundaries when mapping comment tokens to source lines. Prove that marker text inside a multiline string with Unicode line separators is preserved exactly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete #129 on a feature branch from current dev, retaining contributor credit. Passing checks with a standalone completion marker start a five-second countdown; resuming edits cancels it. At expiry, remove only real standalone comment tokens, rerun checks, save progress, and advance.
Preserve marker text inside string literals and leave text unchanged when tokenization fails. Carry submitted text and a run identity through worker callbacks so stale or cancelled results cannot schedule advancement or replace a newer failure. Marker text inside a string keeps the existing manual-completion prompt. Preserve the autosave/revert and quit-flush behavior from #162 and the core completion-marker contract.
Supersedes #129 after merge. No matching issue was linked by the original contribution.
Tests
Reviewed head:
d9b1a3c5f6ff43498c804429e7da94ae27316f3b; Linux, Python 3.13.13.ruff check .: passed.ruff format --check --quiet .: passed.python -m pytest -q: 271 passed in 40.74s, including welcome copy, runner/CLI, reference solutions, autosave/revert, and quit behavior.pythonlings --root tests/fixtures/passing_curriculum verify: passed.python -m build --no-isolation --outdir /tmp/pythonlings-continue.2mi7__50/auto-dist: source and wheel builds passed with installed Hatchling; isolated dependency installation had stalled earlier in this session.python -m pip install --no-deps --force-reinstall /tmp/pythonlings-continue.2mi7__50/auto-dist/pythonlings-0.4.4-py3-none-any.whl: passed in a temporary environment. From /tmp, an installed-wheel Textual pilot exercised the real five-second timer, marker removal, progress persistence, loading a2, and Ctrl+Q. Imports came from site-packages; final wheel files match all five changed production files, including corrected onboarding copy.git diff --check: passed. Supported-version runtime verification remains the hosted CI matrix.All nine hosted checks must pass before squash merge into dev.
Screenshots
Current captures from the installed-wheel pilot at 130 x 36. Rendered PNG copies were visually inspected.
Five-second countdown after a passing marked exercise:
Next exercise after marker removal and saved progress:
Checklist
CI run 41993658239: all nine checks passed at
d9b1a3c5f6ff43498c804429e7da94ae27316f3b, including Python 3.9-3.13, macOS, Windows, packaging, installed CLI, and required Ruff gates. No unresolved review feedback.