Skip to content

Live Log while stepping: follows every run, run selector, highlights the latest step - #194

Merged
danyill merged 1 commit into
mainfrom
fix/stepping-live-inspector
Nov 7, 2026
Merged

danyill merged 1 commit into
mainfrom
fix/stepping-live-inspector

Conversation

@danyill

@danyill danyill commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Closes #193.

The Live Log kept a count of lines already shown and appended only session.logs[count:]. Each run has its own shorter log, so after Jump or after stepping off the end of a run nothing reached the tree, and run 1's rows stayed on screen.

The Live Log is now LiveLogPanel (raptor/gui/ui/live_log_panel.py):

  • Follows the run being stepped, across run boundaries.
  • Run selector (Run N of M, previous/next) brings back finished runs while stepping on; stepping does not disturb a finished run on screen, and choosing the last entry follows the live run again.
  • The rows the latest step added are tinted (the theme's accent, translucent, so the state colours still read) and bold; the newest row is kept in view. The tint follows a theme change.
  • Memory: the session keeps every line; the tree holds the newest 5,000 rows of a run and says so in its status line.
  • The Results dock's live view lists every run so far, not only the current one.

Docs: manual (stepping section) and the debugger chapter; manual.html and book.html regenerated.

Tests: tests/unit/test_gui_live_log_runs.py (8): follows every step, run 2 shows its own rows after a Jump, going back to run 1 and forward again, highlight moves with each step, newest row scrolled into view, row cap, Results dock lists runs, panel cleared with the session. Step jump, Results, dock layout, run controls and docs gates pass; ruff and the mypy gate are clean.

…tep highlighted

The feed counted the lines already shown and appended only the tail of the
session's current log. Each run has its own, shorter log, so after Jump (or
stepping off the end of a run) nothing reached the tree and run 1's rows
stayed on screen. The Live Log is now a panel with a run selector (Run N of
M, previous/next), shows the run being stepped and follows it into the next
run, keeps finished runs readable while stepping on, tints and bolds the
rows the latest step added, keeps the newest row in view, and holds at most
the newest 5,000 rows of a run (saying so). The Results dock's live view
now lists every run so far, not just the current one.
@danyill
danyill merged commit 8138175 into main Nov 7, 2026
24 checks passed
@danyill
danyill deleted the fix/stepping-live-inspector branch November 7, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live Log during stepping shows only the first run: no updates after Jump, no way back to earlier runs, no current-event highlight

1 participant