Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/goose-cli/src/session/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ impl Highlighter for GooseCompleter {
prompt: &'p str,
_default: bool,
) -> Cow<'b, str> {
Cow::Borrowed(prompt)
// Color the prompt glyph with the same accent used for user
// messages elsewhere in the transcript, so the live prompt and
// the historical (`/resume`) view of the same turn look the same.
Cow::Owned(super::formatting::apply(super::formatting::Role::Accent, prompt).to_string())
}

fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> {
Expand Down
Loading