Repository navigation
feat(web): inspect runtime state and restore archived conversations - #445
Merged
Merged
Conversation
10 tasks
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 Web workbench could display runtime activity but could not inspect terminal output or expose the already available thinking, trust and provider credential projections. Archived conversations also had no restore entry point.
This adds a read-only runtime dialog, clickable background-terminal details, and an archived-history view with exact-path restore. Diagnostics load only on open/manual refresh; close, Session or model changes invalidate the panel. Optional expected-Session queries reject mismatched requests with 409, and terminal receipts carry Session identity to prevent same-id terminal confusion. Existing callers remain compatible.
Archive browsing explicitly covers the bounded loaded snapshot, including omitted Session/workspace counts and fallback groups for included Sessions whose workspace summary was omitted. Restore does not activate the Session; failures retain a retry entry. Terminal output stays escaped text with truncation disclosures. Configured credentials are not represented as a successful model request.
Validation:
bun run checkpassed (contracts, production Web build, format, lint, typecheck).bun run test: 1457 Node tests passed, 1 skipped; 98 Vitest tests passed.bun run test:web:e2e: 6 passed, covering desktop/mobile, keyboard/axe, Session-scoped diagnostic requests, plain-text terminal output, and failed restore/retry with zero Session activation requests.Browser evidence uses this checkout's production build and deterministic endpoint fixtures. It does not claim installed Pi runtime acceptance, provider request success, or performance benchmark results. No tool authority, provider stack, setup defaults, or archive storage format changes.
First usability slice of #76; relates to #343, #346, #347 and #348. Those broader issues remain open for approval/control flows, full capability inspection, and configuration work. Workflow/subagent deep inspection, attachments/deliverables, and measured long-history improvements are subsequent slices.