[pull] main from gi-dellav:main#81
Merged
Merged
Conversation
Route /undo through a new Session::rewind_to, which records a single-step restore point before truncating the conversation. /redo restores the last rewind, and the restore point is dropped once the conversation moves forward (add_message), so /redo only ever reverses the cut it follows. This is the shared primitive a double-Esc rewind picker builds on next: the only difference between /undo and a rewind-to-here is which length they pass.
YAML is a superset of JSON and improves editability for users (no braces, no trailing commas). Since serde_yaml_ng is in our transitive dependencies anyway, supporting it does not increase our footprint.
/rewind opens a two-level picker over earlier user turns. Pick one, confirm with "Rewind and start from here", and the conversation rewinds in place (via Session::rewind_to) with that turn loaded back into the input box for editing. Implemented as a slash command rather than a key binding so it does not reserve Esc, which host TUIs may use for their own navigation.
feat: /rewind to an earlier turn and a reversible /undo
Add YAML config parser
Retrying and ACP didn't talk to each other.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )
Note
Add session rewind/redo commands and exponential backoff retry logic for agent streams
/rewindand/redoslash commands:/rewindopens a two-stage modal picker to select a prior user turn, truncates the session to that point, and restores the user's original input;/redorestores the truncated messages if no new messages have been added since.retrymodule (src/retry.rs) withRetryConfig(default: 3 attempts, 500ms–10s exponential backoff with jitter),with_retry, andretry_stream_chathelpers used across agent runner, advisor, ACP, and provider.RetryConfigfromConfig.retrythrough allspawn_runner,run_print,spawn_btw, andrun_subagentcall sites; emitsAgentEvent::Retrying { attempt, max }in the UI during backoff.config.toml→config.yaml→config.yml→config.json.undo_lastnow callssession.rewind_toinstead ofsession.truncate_to, making/undoreversible — existing behavior is preserved but the operation is now undoable via/redo.Macroscope summarized 9d4fe39.