Repository navigation
feat: show recovery summary for selected history branch - #50
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.
Saved history now offers a collapsible summary of the selected branch, with message and tool outcomes and the latest request and reply. Unfinished tools carry guidance to review the workspace before retrying, and selecting another branch or an ancestor updates the summary.
Part of #4.
Closes #49.
The summary starts collapsed to preserve transcript space. Excerpts contain up to 240 characters of saved message text and do not infer task completion or current file state. Markdown export shares the same outcome counting logic.
Verified on macOS with the pinned mise toolchain
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, 51 tests.mise run buildpassed.mise exec -- bun run test:e2e --reporter verbose --testTimeout 30000passed, 45 tests across five suites.The delayed background-open check now allows ten seconds for asynchronous startup on a loaded machine. The history check scopes repeated reply text to the transcript. Both retain their existing behaviour assertions.
Electron output from the final local run
New coverage includes
counts each outcome using the same precedence as tool cardsexcerpts the latest text without including thinking or tool outputhandles empty and tool-only selections without inventing message textupdates the excerpts and counts when the selected path changeswarns about unknown tool effects without declaring the work completeshows an empty selection and escapes message markupsummarises unfinished history without launching Pi and follows branch selectionElectron proof run passed all 45 tests using
mise run test:e2e. Download the screenshot proof from its uploadedpidex-e2eartefact.The Electron fixture captures
test-results/history-summary/unfinished-tools.pngandtest-results/history-summary/selected-branch.png. Local copies are retained under.tmp/proof/and are not committed. The uploaded artefact contains both images, pluslong-session/history-narrow.pngshowing the collapsed summary at 900 by 600. Captures were visually inspected locally.Direct inline image upload was blocked because browser automation was unavailable. Electron screenshots and test transcripts provide the proof through the linked CI artefact.
The Electron suite uses deterministic Pi RPC fixtures, so live providers are not covered. Folder-to-folder context transfer remains a follow-up under #4.
GitHub lint, typecheck, unit, integration, build, release adapter, Electron E2E, CodeQL and Socket checks all passed on
7198feb.