Skip to content

refine copilot output behavior#16

Merged
sozercan merged 2 commits intomainfrom
codex/copilot-output-behavior
Apr 20, 2026
Merged

refine copilot output behavior#16
sozercan merged 2 commits intomainfrom
codex/copilot-output-behavior

Conversation

@sozercan
Copy link
Copy Markdown
Owner

Summary

  • stop printing conversation IDs in human-facing Copilot output
  • improve --no-input plain output formatting
  • add spinner and terminal handling updates for Copilot interactions
  • refresh docs and tests to match the new behavior

Why

Human/plain output was exposing conversation IDs and the --no-input experience had awkward formatting. These changes make the CLI output cleaner and more consistent for interactive and non-interactive use.

Impact

  • users get cleaner Copilot output without internal conversation identifiers
  • --no-input results are easier to read in plain mode
  • terminal UX is smoother during Copilot requests
  • docs and tests now reflect the revised behavior

Root Cause

The command path mixed internal conversation metadata into human-facing output, and the plain-mode --no-input formatting did not present the response cleanly.

Validation

  • go test ./... -count=1
  • go vet ./...
  • make build

@sozercan sozercan changed the title [codex] refine copilot output behavior refine copilot output behavior Apr 20, 2026
@sozercan sozercan marked this pull request as ready for review April 20, 2026 19:49
Copilot AI review requested due to automatic review settings April 20, 2026 19:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the Copilot CLI UX by removing internal conversation identifiers from human-facing output, improving --no-input readability, and adding a lightweight terminal spinner during Copilot requests.

Changes:

  • Stop emitting conversation IDs in human/plain outputs (keep them available via --output json).
  • Adjust --no-input output to omit the chat-style Copilot: prefix while preserving relevant metadata.
  • Add a terminal spinner for Copilot requests and update docs/tests accordingly.
Show a summary per file
File Description
internal/commands/copilot/copilot.go Removes conversation ID printing, hides conversation IDs in non-JSON output, adds --no-input formatting tweak, and introduces a spinner.
internal/commands/copilot/copilot_test.go Updates expectations to ensure conversation IDs stay hidden and adds coverage for --no-input and spinner behavior.
docs/copilot.md Updates CLI documentation to direct users to JSON output for inspecting conversation IDs.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

Comment thread internal/commands/copilot/copilot.go Outdated
Comment on lines +279 to +282
func startCopilotSpinner(ctx *commands.Context, w io.Writer) func() {
if ctx.Verbose || !stderrIsTerminal() {
return func() {}
}
@sozercan sozercan merged commit b6d34dd into main Apr 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants