Skip to content

App: Git tab, where a note on a diff line goes to the agent (G1) - #117

Merged
lydakis merged 7 commits into
mainfrom
claude/app-rich-rendering-896e1a
Oct 10, 2026
Merged

lydakis merged 7 commits into
mainfrom
claude/app-rich-rendering-896e1a

Conversation

@lydakis

@lydakis lydakis commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Before: to see what an agent changed you opened a terminal in its worktree, and to tell it about a line you typed the path and line number into its chat by hand.

After: an agent's ⎇ branch chip, or Git in its ⋯ menu, opens a Git tab for its folder, laid out like lazygit: changes, commits and worktrees on the left, the chosen diff on the right. Click a diff line, type a note, press Enter, and the note goes to the agent working there as an ordinary message that names the file and line and quotes it.

build's worktree: three changes, session.rs's diff
A note on an added line, going to build
The note in build's chat, and its answer
The worktree's newest commit, file by file

Screenshots are the demo mode in headless Chromium (synthetic data). The native side could not be built here (the app crate does not build on Linux); git.rs and the files.rs refactor were tested in a scratch crate against real git repositories.

Picks (PLAN.md owes no decision for G1; these are mine, simplest first):

  • Read only. No stage, commit, push or undo: agents commit their own work, and the plan's line is about notes going to the thread. Writing can come later if George wants it.
  • A note goes to the agent working in that folder: the one the tab was opened from, else one working now, else the project's coordinator. It is a plain message from you (queued behind a running turn), formatted as path:line, a quoted line, then the text; a removed line is named by its old number, a commit's note names the commit.
  • No lazygit binary and no new dependency: the core runs plain git.

How

  • app/src-tauri/src/git.rs (new): view runs status --porcelain=v1 -z --branch --untracked-files=all (streamed, at most 2,000 changes or 4 MiB, git killed past either), log -z -n50 and worktree list --porcelain -z; diff diffs a change against HEAD (or the empty tree before the first commit), an untracked file against /dev/null, or a hex commit against its first parent, with --literal-pathspecs, no external diff or textconv, GIT_OPTIONAL_LOCKS=0 so it never holds a lock an agent's git waits on, and a 1 MiB bound cut at a line. files.rs now shares its repository-top and clean-env git helpers with it.
  • main.rs: git_view and git_diff commands, refused in a window on a host like the file commands.
  • app.js: a page tab keyed ⎇ + folder, like a file tab (no composer, Home's list beside, saved with the tabs). Only the tab in view reads: when it comes into view, on r/↻, when the window regains focus, and 600 ms after a step or turn ends for an agent in that repository. One diff read at a time, at most 5,000 drawn rows. Keys: j/k, 1–3 or h/l, Enter opens a change's file tab or another worktree's Git tab, o opens the agent.
  • docs/APP.md: a Git section with the screenshots and the bounds.

Tests: node --test app/tests/state.test.cjs (213 pass; 6 new for the tab, its notes, refresh, restore and diff parsing) and 2 Rust tests for git.rs in the scratch crate, clippy clean.

🤖 Generated with Claude Code

…iff line goes to the agent

The app reads the folder's repository with plain git (status, log,
worktree list, one diff at a time, all bounded) and only reads. A click
on a diff line writes a note; Enter sends it to the agent working in the
folder as an ordinary message naming the file and line and quoting it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T08:09:24.374471Z f85cd75 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: f4c027d004

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: cf7b6a0861

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
…ad stay chosen, sent notes follow their line, standard diff prefixes, a vanished file fails

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Copy link
Copy Markdown

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: 1a35f5a1fb

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
…ws under only its own copy of a repeated line, a new store forgets who opened a tab, views fetch nothing a partial clone left out

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 7b852862e7

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/src-tauri/src/git.rs Resolved

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 4c1215ef08

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: f85cd757fe

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/git.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
@lydakis
lydakis merged commit 93b6af1 into main Oct 10, 2026
1 check passed
@lydakis lydakis mentioned this pull request Oct 11, 2026
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