Repository navigation
feat: show current Git status before resuming history - #65
Merged
Merged
Conversation
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
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.
Saved history now shows the selected root's current Git branch and changed-file counts in a compact disclosure before Resume or Fork. Open Current workspace changes to read the file-restoration reminder and review the diff, then return to the same archive entry and continuation draft.
Part of #4.
Closes #64.
Verification
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, 78 tests.mise run buildpassed, including lint, typechecking, unit and integration tests and the production bundle.git diff --checkpassed.New component coverage is
distinguishes current files from saved conversation history. Existing status coverage checks dirty, clean, detached, loading, unavailable and failed inspections. The new Electron regression isreviews current changes from saved history without losing the selected entry or continuation draft; it checks selected-path preservation, draft preservation, focus refresh, source archive preservation and no runtime launch.Proof
Local Electron capture was blocked because the installed package has no runtime binary. Hosted macOS Playwright Electron capture succeeded on final commit
633cc48; all 54 tests passed across seven suites. The new history review regression and the existing session-branch, long-transcript and tool-footer checks passed.Download the proof PNGs. The uploaded artefact contains these running-app captures under
test-results/workspace-status/.history-workspace-status.pngshows the current branch and changed-file count beside the selected saved path and its continuation draft.history-workspace-status-expanded.pngshows the file-restoration reminder, staged/unstaged/untracked totals and review action.history-workspace-status-refreshed.pngshows the counts after an external Git edit and a focus refresh.history-workspace-status-narrow.pngshows the same selection and draft at the native 900 by 600 minimum window size.The desktop capture is 1280 by 677, clamped to the hosted display. Captures resize the native window and verify matching renderer bounds. The PNGs were downloaded and visually reviewed; copies are saved locally under
.tmp/proof/and are excluded from the commit. GitHub retains this artefact until 20 November 2026. Inline image attachment is blocked because browser discovery returnedThe browser access host is unavailable; the screenshots are uploaded in the linked CI artefact.The disclosure starts closed to retain transcript space. Short-window history headings and composer spacing are more compact, and the changed-file count stays readable when the branch name is shortened. Dirty work does not block continuation. Inspection follows the existing focus, navigation and 15-second refresh; this slice does not restore files, switch Git branches or change Pi resume semantics. Further recovery work stays under #4.