feat: Claude Code parity roundup (/rewind, ! shell, queue navigation)#3186
Merged
Conversation
Adds parseRewind helper and wires /rewind into Controller.Submit() so all
frontends (TUI, desktop, HTTP) can trigger checkpoint-based rollback.
Usage:
/rewind → rewind to latest checkpoint (both)
/rewind <turn> → rewind to specific turn (both)
/rewind <turn> <scope> → rewind with explicit scope
scope = code | conversation | both
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Typing !<cmd> runs a shell command directly (bypassing the model), the way Claude Code's bang prefix does. Wired through TUI, desktop, and the controller (RunShell) under the same run lock; output streams as a tool card with collapse/expand, and uses a process-group kill on timeout. Co-authored-by: lanshi <yzs20030317@gmail.com>
While a turn streams, up/down browse and edit the pending-interject queue (the queued-messages model Claude Code uses), with a dim queue indicator above the input. Closes #2551.
The ! shell feature predated per-tab controllers: route RunShell through activeCtrl() (a.ctrl is gone), dispatch the echo via dispatchTo(activeTabId) (dispatch was renamed), and type the Ctrl/Cmd+B handler as the DOM KeyboardEvent (React's synthetic type shadows the global).
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.
Parity-feature roundup bringing the CLI/desktop closer to Claude Code, rebased onto current main-v2 and verified end-to-end (
go build ./...,go testroot+desktop,wails buildtsc+Go). Authorship preserved per commit./rewind [turn] [code|conversation|both]slash command, mirroring Claude Code's/rewind; reuses the existing checkpoint machinery.!<cmd>runs a shell command directly (bypassing the model), like Claude Code's bang prefix; streams output as a collapsible tool card across TUI + desktop, process-group kill on timeout. Adapted to the per-project tab model (a.ctrl → activeCtrl, dispatch → dispatchTo) + DOM KeyboardEvent typing.Verification: shell exec (
TestRunShell_*),/rewindparse (TestParseRewind*), and queue-nav (TestQueue*/TestInterject*) tests pass; desktopwails buildclean.Closes #3164
Closes #2993
Closes #3143
Not included this round: #3070 (reveal-in-file-manager) is already in main-v2; #3144 / #3125 / #3030 (text-size / shortcuts / close-to-tray) conflict heavily in the reworked styles/settings and are deferred to a clean follow-up rebase.