Skip to content

feat: Add browser-like back navigation and link replay for --ui - #193

Merged
sawka-harness merged 13 commits into
mainfrom
naman/ui-traversal
Sep 4, 2026
Merged

feat: Add browser-like back navigation and link replay for --ui #193
sawka-harness merged 13 commits into
mainfrom
naman/ui-traversal

Conversation

@BlueLabelscotch

Copy link
Copy Markdown
Collaborator

Summary

--ui mode could only go forward — every link/up/view hop discarded the
running program with no way back, so q deep in a chain exited the whole
process. This adds real back-navigation:

  • New cmdctx.UILink + dispatchLink replay mechanism, re-resolving auth
    from the raw scope strings captured at hop time.
  • Session-lifetime UIHistory stack, pushed on every hop, popped by a new
    b key to redraw the previous screen.
  • Exiting a view screen (e.g. log viewer) now resumes where it was
    launched from, instead of exiting the session.
  • b inside an in-place list→detail flip now collapses like esc, instead
    of touching history.
  • List cursor position and active search filters are captured on hop-leave
    and restored on replay.

@sawka-harness
sawka-harness merged commit bdc78a0 into main Sep 4, 2026
1 check 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.

2 participants