Repository navigation
git-glance: run in the Herdr app as well as the TUI - #7
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Also keeps the commit/stash prompt open until git accepts (TUI parity) and hands each callback the running task's cx instead of a captured one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
- git calls turn core.fsmonitor off, so a status never writes under .git and the app's folder watch can't refresh forever - refreshes coalesce (one running, one queued) and older snapshots never replace newer ones - one watch loop per repo root; following a terminal within the same repo no longer stacks loops - following a terminal into another repo resets prompt, picker, footer and selection, so nothing aimed at the old repo runs against the new one - the lifecycle rules live in lifecycle.js with node tests, run by just ci and CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Git Glance now works in the Herdr desktop app (herdr-app) as well as the TUI. This is the pilot for "option C": the Rust binary does the git work and prints JSON, and each UI draws it.
What changed
git-glance <command> --cwd <dir>prints JSON. Commands: status, stage/unstage (one file or all), commit, diff, branches, switch/create, stashes, and stash push/pop/apply/drop. Exit codes are 0 for ok, 1 when git refuses, 2 for bad arguments.git-glance uiruns the TUI unchanged.git-glance(plugins/git-glance/gui/git-glance/): native glance with the same views as the TUI (status, diff, branches, stashes) and the same keys, plus buttons and clicks. It refreshes live when files change.git-glance-pane: toggles the glance as a split pane on the right that follows the focused terminal's repo.justlinks the mods into~/.config/herdr-app/mods/.just gui-checkrunsherdr-app check(needs the app, so it is not in CI).just gui-testruns Node tests for the mod's refresh logic, injust ciand GitHub CI.docs/superpowers/specs/2026-11-02-git-glance-gui-design.md. Plan:docs/superpowers/plans/2026-11-02-git-glance-gui.md.Review fixes (each with a test that failed first)
core.fsmonitor=false, so repos with fsmonitor on don't refresh forever.Testing
just cipasses: 65 Rust tests, 6 Node tests, fmt and clippy.herdr-app checkpasses on both mods.Known gaps (not fixed here)
[id].tsxcan match other files. The TUI has the same issue.--create) is read as an option by the JSON CLI.justdoesn't remove links for deleted or renamed mods.🤖 Generated with Claude Code
https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE