feat(prompt): render reasoning effort next to model in CLI prompt#3101
Open
EmojiPati wants to merge 2 commits intotailcallhq:mainfrom
Open
feat(prompt): render reasoning effort next to model in CLI prompt#3101EmojiPati wants to merge 2 commits intotailcallhq:mainfrom
EmojiPati wants to merge 2 commits intotailcallhq:mainfrom
Conversation
79e4937 to
e91456f
Compare
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
Surface the currently configured reasoning effort (e.g. `HIGH`, `MEDIUM`) in the `forge` CLI's own right prompt, matching the zsh rprompt behavior introduced in #3087. Users now see the configured effort regardless of whether forge is invoked through the zsh plugin or directly.
Context
#3087 added reasoning effort to `ZshRPrompt` (`crates/forge_main/src/zsh/rprompt.rs:33`), which renders the `RPROMPT` for users who have the zsh plugin installed. The `forge` CLI's interactive reedline prompt — `ForgePrompt` at `crates/forge_main/src/prompt.rs:35` — renders agent, tokens, cost, and model but was never updated with the same effort segment. So users running `forge` without the zsh plugin (or in CI, via `-p`, etc.) couldn't see it.
Changes
Rendered Examples
Testing
```bash
cargo test -p forge_main --lib prompt::
cargo test -p forge_main --lib
cargo clippy -p forge_main --lib --tests -- -D warnings
```
Three new unit tests in `prompt.rs`:
Links