Repository navigation
fix(setup): fold TUI requests with Pi-native expansion (#654) - #659
Merged
Merged
Conversation
7 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.
Problem
Related #654. Setup requests currently expose the full internal configuration prompt by default in the TUI, obscuring the user's original command and request.
This PR implements the scoped presentation fix, but does not claim all issue acceptance criteria are complete. Outstanding gaps are listed below; this is intentionally not a closing reference.
Value
Keep setup interactions readable while preserving access to the complete execution prompt, the model's context, and the authoritative Session facts. No configuration or permission changes are required to gain the improved presentation.
Approach
Merge current main (
94f6dfb2) into the PR branch without conflicts; preserve setup presentation and execution semantics.Register a Pi-native renderer only for
openpi-setup-request. The collapsed view shows[OpenPi] <actual command>and the original request, including the compatibility alias, with natural wrapping and terminal-control sanitization confined to display.Let Pi own expansion (
app.tools.expand, default Ctrl+O). Expanded requests and legacy/invalid metadata fall back to native full-content rendering. No separate toggle or click mechanism is introduced where the supported host has no disclosure-click API.Preserve content, metadata, receipts, writer authority, and lifecycle. Web retains its existing projection; persistence, real RPC
get_messagesJSONL, and HTML exported entry payloads are checked against the full runtime content.Make integration Session storage and cleanup explicitly test-owned. Document the presentation boundary in
SETUP.md.Scope: five files, two commits; fixed implementation base
c7862b852d866123e2b32c79d309bd49a3cf515f, final HEAD578071c4baa9348fb73c595321293cea913ec104. No source edits were made during PR preparation.Validation
Current follow-up head:
b8dce62e.bun run checkpassed (8.08 s); setup unit tests passed 41/41 (1.46 s). Full platform validation runs through the new CI suite. Required human approval remains separate from CI.Earlier implementation evidence (retained for provenance):
Implementation evidence at the exact final HEAD (from the supplied receipt and retained local logs; these commands were not rerun during PR preparation):
node --test --experimental-strip-types tests/extensions/setup/index.test.ts tests/extensions/setup/integration.test.ts tests/extensions/setup/package-contract.test.ts tests/web/prompt-navigation.test.ts: 52/52 passed.bun run typecheck: passed.bun run check: passed in a frozen source mirror outside a.gitancestor. In the assigned worktree it fails at lint with nine unused-suppression warnings in unchanged Web files. The same warnings reproduce at the exact fixed base inside a.gitancestor; the fixed-base mirror outside.gitpasses. This is not a claim that the worktree gate is green.bun run test: failed — 2,137 Node tests, 2,125 passed, four failed, eight skipped. Setup integration passed. The four failures reproduce at the exact fixed base usingnode --test --experimental-strip-types tests/extensions/goal/goal-surface.integration.test.ts tests/extensions/plan-mode/result-rendering.test.ts(25/29 passed): two Goal surface RPC/Web fixture assertions and two rich/extreme-width plan-rendering hyperlink assertions. The runner stopped before Vitest/UI.git diff --checkpassed. Current publishedmainhas advanced beyond the fixed base; its merge base with this branch remains the exact fixed base, and the PR comparison contains only the same five scoped files. Validation above does not establish results against the newer base tip.Explicit gaps / not run:
0.99.1.gh pr checks 659 --repo openpi-dev/openpireported all 14 checks pending (queued/in progress; exit 8), with no completed results at observation. CI run. Published branch and PR HEAD both match578071c4baa9348fb73c595321293cea913ec104; pending checks are not passes.Raw local evidence and private Session/configuration data are not published. No merge or live installation/update was performed.
Impact