Skip to content

Fix screen scraping and codex sessions#51

Merged
wfaderhold21 merged 4 commits into
mainfrom
topic/errors
Jul 21, 2026
Merged

Fix screen scraping and codex sessions#51
wfaderhold21 merged 4 commits into
mainfrom
topic/errors

Conversation

@wfaderhold21

Copy link
Copy Markdown
Owner

No description provided.

- Anchor generic_error regex to line-start structural shapes only
  (^error[:[] ^failed[:[] etc.) instead of bare substring matches.
- Scope error detection to BaseKind::Other; agent sessions (Claude,
  Codex, LocalAgent) no longer flip to ERROR from screen text.
- Add tests for anchored patterns and kind-scoped behavior.
- Report fresh input tokens (total minus cached) instead of raw cumulative,
  matching claude_log.rs behavior where cache reads are excluded from the
  displayed input count. Cache still prices into cost correctly.
- Align tail() with claude_log accumulation pattern: track latest cumulative
  values in local acc_* variables and send one consolidated SessionStats per
  poll cycle instead of dispatching per-event.
When the TUI is on the alternate screen and content scrolls upward,
capture the line leaving the top of the visible grid into output_lines
for PageUp/Shift-Up scrollback. Gated to Claude/Codex sessions via
captures_alt_scrollback() predicate; shell sessions unaffected.
Dedup identical top lines to tolerate TUI repaints.
@wfaderhold21
wfaderhold21 merged commit 79544b6 into main Jul 21, 2026
2 checks passed
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.

1 participant