feat(cli): add /thinkback to review model thinking blocks#159
Merged
emal-avala merged 3 commits intomainfrom Apr 22, 2026
Merged
feat(cli): add /thinkback to review model thinking blocks#159emal-avala merged 3 commits intomainfrom
emal-avala merged 3 commits intomainfrom
Conversation
`/thinkback` prints the most recent assistant turn's thinking blocks (when the model used extended thinking). `/thinkback <n>` walks back N turns, where 1 is the latest. Useful for debugging why the model went down a particular path — previously thinking blocks were rendered once during streaming and then invisible. They're still in the conversation history, this just surfaces them.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
# Conflicts: # crates/cli/src/commands/mod.rs
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.
Summary
Adds `/thinkback` — surfaces the model's thinking blocks from a recent turn so users can review reasoning after the fact.
Why
Extended thinking is enabled in agent-code (interleaved-thinking beta flag), and blocks are persisted in conversation history. But once they scroll off the terminal, they're effectively invisible — there was no way to review why the model went down a specific path. This command closes that loop.
Test plan