Skip to content

feat: show current Git status before resuming history - #65

Merged
johnnyhuy merged 5 commits into
mainfrom
agent/issue-64-history-workspace-status
Nov 13, 2026
Merged

johnnyhuy merged 5 commits into
mainfrom
agent/issue-64-history-workspace-status

Conversation

@johnnyhuy

@johnnyhuy johnnyhuy commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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-lockfile passed.
  • mise exec -- bun run lint passed.
  • mise exec -- bun run typecheck passed.
  • mise exec -- bun run test:unit passed, 90 tests.
  • mise exec -- bun run test:integration passed, 78 tests.
  • mise run build passed, including lint, typechecking, unit and integration tests and the production bundle.
  • git diff --check passed.

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 is reviews 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

$ mise exec -- bun run test:unit
 Test Files  10 passed (10)
      Tests  90 passed (90)

$ mise exec -- bun run test:integration
 Test Files  13 passed (13)
      Tests  78 passed (78)

$ mise exec -- bun run test:e2e tests/e2e/workspace-status.test.ts --reporter=verbose
 Error: Electron failed to install correctly
 Test Files  1 failed (1)
      Tests  4 skipped (4)

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.

$ mise run test:e2e  # hosted macOS, final commit
 tests/e2e/workspace-status.test.ts (4 tests) passed
 Test Files  7 passed (7)
      Tests  54 passed (54)

Download the proof PNGs. The uploaded artefact contains these running-app captures under test-results/workspace-status/.

  • history-workspace-status.png shows the current branch and changed-file count beside the selected saved path and its continuation draft.
  • history-workspace-status-expanded.png shows the file-restoration reminder, staged/unstaged/untracked totals and review action.
  • history-workspace-status-refreshed.png shows the counts after an external Git edit and a focus refresh.
  • history-workspace-status-narrow.png shows 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 returned The 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.

johnnyhuy and others added 5 commits November 14, 2026 02:32
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>
@johnnyhuy
johnnyhuy marked this pull request as ready for review November 13, 2026 19:48
@johnnyhuy
johnnyhuy merged commit 1c688db into main Nov 13, 2026
15 checks passed
@johnnyhuy
johnnyhuy deleted the agent/issue-64-history-workspace-status branch November 13, 2026 19:48
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.

Show current root Git status before resuming saved history

1 participant