Skip to content

git panel improvements - commit history, pull, push - #77

Merged
bharathm03 merged 6 commits into
developmentfrom
feat/git-sync-status
Sep 2, 2026
Merged

git panel improvements - commit history, pull, push#77
bharathm03 merged 6 commits into
developmentfrom
feat/git-sync-status

Conversation

@abinesh-balasubramaniyan

Copy link
Copy Markdown
Contributor

No description provided.

@abinesh-balasubramaniyan abinesh-balasubramaniyan added the enhancement New feature or request label Sep 2, 2026
…starts

The new git verbs reach argv positionally, and parseMessageFast skips Zod on that path — so a stash ref of "--index" pops a stash nobody tapped, a commit id of "--output=<path>" turns a read into a write, and "--help" hangs a non-interactive Bun.spawn forever holding the checkout. Refs are now matched against exactly what listStashes emits, shas against a sha pattern, and log paging is clamped.

git:sync, git:stash-pop and git:stash-drop are tracked rather than fired: each holds the checkout as its child's cwd, and awaitGitRefreshes is what teardown waits on before git worktree remove. Untracked, a session deleted mid-push takes a Windows sharing violation and is undeletable forever. handleGitSync also answers a throw with a result — git:sync-result is not a replay type, so sending nothing left the panel's spinner turning for the life of the session.

The app was applying replies it never correlated: any git:log page landed under the skip it was not asked for, and a late push result cleared a pull's spinner and reported the push's outcome as the pull's. Both now carry a guard. A probe's counts supersede the local pair in the frame reporting its verdict, git:sync-state is forced where the bus would dedup the re-push a resync exists to perform, and five widgets that started async work from void callbacks got detached() — two were carrying a WidgetRef across the await that disposes them.

The status-cache suite failed about half the time: bootCore waited only for the first agent:status, so boot's post-refresh re-send landed mid-test. It now drains on the git:sync-state that closes that same .then(), which also makes the counts mean something — the re-send is deduped, so only the pull's own recompute can move them.
@bharathm03
bharathm03 merged commit 85d7a29 into development Sep 2, 2026
4 checks passed
@bharathm03
bharathm03 deleted the feat/git-sync-status branch September 2, 2026 15:46
@bharathm03 bharathm03 changed the title Feat/git sync status git panel improvements - commit history, pull, push Sep 2, 2026
bharathm03 added a commit that referenced this pull request Sep 2, 2026
#77 added a Handler row to the agent panel's action menu, calling the arm flow by the name it had when that work started. This branch renamed that flow armWithSheet. The declaration and the new call site are in different files, so both sides merged clean and nothing failed until analyze -- the ordinary shape of a semantic conflict.

The row is given the header shield's tooltip ordering while it is here: a refusal outranks the coverage notice, because coverage describes what an arm would GET and a refusal decides whether one can happen at all. Its arm path needed nothing -- it goes through armWithSheet, which asks about entitlement before it opens anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants