Repository navigation
feat: show workspace Git status before starting a session - #58
Merged
Merged
Conversation
Co-authored-by: OpenAI Codex <noreply@openai.com>
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.
The new-session view now shows the selected root's branch, unique changed-file count and staged, unstaged and untracked totals before sending a task. Review workspace changes opens Changes while keeping the task draft; loading, failed inspections and unavailable roots have explicit states.
Part of #1
Closes #57
Verification
mise exec -- bun install --frozen-lockfilepassed.mise exec -- bun run lintpassed.mise exec -- bun run typecheckpassed.mise exec -- bun run test:unitpassed, 90 tests.mise exec -- bun run test:integrationpassed, 72 tests.mise run buildpassed, including all checks and production bundling.mise exec -- bun run test:e2epassed, 51 tests across six Electron suites.git diff --checkpassed.Proof
New Electron coverage uses actual temporary Git repositories and exercises the following behaviour.
shows mixed Git changes before starting Pi and opens Changes without losing the task draftrefreshes changed counts on focus and keeps clean and detached roots distinctdoes not describe non-Git folders or missing roots as cleanComponent coverage includes
counts a partially staged file once overall and in both change groups,shows a clean root only after inspection and explains detached HEAD, four cases ofdoes not claim a clean root when ..., andkeeps inspection pending until the selected root responds and exposes inspection failures. Existing delayed-root coverage also checks inspection ownership. A failed refresh replaces the prior counts with an unavailable state.Playwright captured the running Electron app at desktop and narrow widths. Both PNGs were visually inspected and are saved locally at
.tmp/proof/workspace-status.pngand.tmp/proof/workspace-status-narrow.png. The same captures are written undertest-results/workspace-status/for the existingpidex-e2eCI artefact upload. Download the hosted Electron screenshot artefact. Both PNGs were verified in the downloaded CI artefact underUsers/runner/work/pidex/pidex/test-results/workspace-status/. CI retains this artefact until 20 November 2026.Direct inline upload is blocked in this environment. Browser discovery reported that the browser access host is unavailable, and native Firefox access returned
cgWindowNotFound. Electron capture succeeded. Scratch captures and logs are excluded from the commit.Counts cover the selected root and refresh on focus, navigation and the existing 15-second interval. A partially staged path counts once overall and in both relevant groups. No filesystem watcher or group-wide summary is added. Broader workspace work remains under #1.