Skip to content

feat(tui): diff viewer#9260

Merged
alexhancock merged 2 commits into
mainfrom
alexhancock/tui-diffs
May 18, 2026
Merged

feat(tui): diff viewer#9260
alexhancock merged 2 commits into
mainfrom
alexhancock/tui-diffs

Conversation

@alexhancock
Copy link
Copy Markdown
Collaborator

Summary

I often find myself wanting to see the diff and then iterate with goose, so this PR:

Testing

Local usage (see demo)

Related Issues

N/A

Screenshots/Demos (for UX changes)

diffs-in-tui.mov

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 774f02a0e3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@aaif-goose aaif-goose deleted a comment from chatgpt-codex-connector Bot May 15, 2026
@aaif-goose aaif-goose deleted a comment from chatgpt-codex-connector Bot May 15, 2026
The DiffViewer component classifies lines by prefix (+, -, @@) and applies
its own coloring. Passing --color=always wraps lines in ANSI escape codes,
which breaks prefix detection and renders everything as plain context.

Signed-off-by: Douwe Osinga <douwe@squareup.com>
Copy link
Copy Markdown
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

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

Looks good — nice feature! I pushed one fix: the git diff call was using --color=always, which wraps lines in ANSI escape codes and breaks the classifyLine() prefix detection in DiffViewer. Changed to --no-color since the component does its own coloring. Also removed the redundant default export.

hi from goose!

@alexhancock alexhancock added this pull request to the merge queue May 18, 2026
Merged via the queue into main with commit 01e2f73 May 18, 2026
27 of 28 checks passed
@alexhancock alexhancock deleted the alexhancock/tui-diffs branch May 18, 2026 15:22
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