Repository navigation
browse --session before the command, Gemini AQ. keys, /verify trust across worktrees, and two more fixes from outside reports - #4684
Merged
Conversation
…script folder fixes from outside reports browse --session works before the command and the docs note Windows has no automatic session (#4662); the handoff window closes its stray blank tab (#4330); $D setup accepts AQ. Gemini keys (#4239); /verify trust is keyed by repository so every worktree shares it (#4407); /context-restore reads CLAUDE_CONFIG_DIR and CODEX_HOME (#4559). Co-authored-by: Basim Rauf <[email protected]> Co-authored-by: Lockyer <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ndoff tabs safe Worktree trust now applies only to folders git lists as worktrees of the repository, so a planted .git file cannot borrow another repository's trust. Redaction and browse cookie masks recognize AQ. Gemini keys. A leading --session goes right after the command, so chain still reads stdin. The handoff cleanup closes only the window's own startup tab. Review-Finding: p1v/outside-voice#1 reader=outside-voice Review-Finding: p1v/outside-voice#2 reader=outside-voice Review-Finding: p1v/outside-voice#3 reader=outside-voice Review-Finding: p1v/outside-voice#4 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 22, 2026
Merged
3 tasks done
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.
Five bugs reported by outside contributors are fixed, each with a test that fails on main:
browse --sessionbefore the command, a stray blank tab in the handoff window, new Gemini keys refused by$D setup,/verifyasking for trust again in every worktree, and/context-restoremissing a second Claude profile's transcripts.Nothing to do after merge.
What changed, item by item
browse --session x goto …failed withUnknown command: '--session'; help and BROWSER.md promised an automatic per-agent session that Windows never gets--session <name>moves right after the command, where it is read, andchainstill reads its flow from stdin; help and BROWSER.md say Windows needsBROWSE_SESSIONper agentrestoreStatecloses the new window's own startup tab if it is still untracked and onabout:blankAQ.;$D setuprefused them and auto-detection called them OpenAI keysAQ.is accepted and detected as Gemini; gstack's secret scan, browse's cookie masks and the live check's log redaction recognize it toogstack-checkstrust was keyed by the checkout folder, so each new git worktree was untrusted~/.claude${CLAUDE_CONFIG_DIR:-~/.claude}(and${CODEX_HOME:-~/.codex}for Codex)Security read
The /verify trust change widens one grant to the folders
git worktree listnames for that repository (a planted.gitfile does not qualify, and GIT_DIR, GIT_COMMON_DIR and GIT_WORK_TREE are cleared for the lookup), and only for an identical command set: the hash covers every check command, package.json script and runner input, so a worktree that declares different commands is still untrusted (tested). Anyone who can add a worktree can already edit the trusted checkout. The newgit rev-parse --git-common-dircall has a 10 s timeout and falls back to the folder key. The Gemini change only widens a prefix check on a key the user types; the key still goes only to Google's endpoint, and the shared redaction patterngoogle.api_key(MEDIUM, warns at pre-push) and browse's cookie masks now matchAQ.keys. No new dependencies, network calls or CI changes. Outside branches were read as text only and rebuilt on main.Left out
#4662's third point (subagents in one harness process share a session) needs a design choice; #4559's second point (spotting work done after a checkpoint in other repositories) is a new feature.
Linked reports
Refs #4662
Refs #4330
Refs #4239
Refs #4407
Refs #4559
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
browse/src/chromium-profiles.ts:171A leading --session now lands right after the command, sobrowse --session a profiles listreads --session as its subcommandsf-700960dd3197security finding, details recorded privatelysf-1887ad341ed1security finding, details recorded privatelytest/gstack-checks.test.ts:125the new worktree test sits under the next test's Value comment (skipped, below the floor)lib/checks.ts:235trusting a worktree whose checks differ replaces the other worktree's grant, so it asks again (skipped, below the floor)--path-formatneeds git 2.31 (now falls back to the folder key),--session=<name>leading form still unsupported, stray-tab fix only matchesabout:blank.Documentation
Status: current. The docs already match this branch's changes and nothing was edited.
Scope: 19 files changed on
fix/outside-browse-designagainst c2b4f0d (3 commits), plus one unstaged edit to the changelog fragment. Changes covered:browse --sessionbefore the command, the stray blank tab in the handoff window,AQ.Gemini keys in$D setup/ redaction / cookie masking,/verifytrust shared across a repository's worktrees, andCLAUDE_CONFIG_DIR/CODEX_HOMEtranscript lookup in /context-restore. I searched the repo's Markdown and template docs for key prefixes, transcript paths, session flags and trust keying.Documentation health:
--sessionbefore or after the command and the Windows note.AIzaexample is still accurate, andAQ.is optional (redaction prose, so I left it alone).Coverage debt:
/verify's worktree-shared trust appears only in the changelog fragment; no reference doc covers how /verify keys trust (a common gap, reference-only).AQ.Gemini keys appear only in the$D setupusage text and the changelog. Neither needs a new page;/document-generatecan fill them later.Diagram drift: none found.
Exploratory QA
Status: pass. Functional smoke, 6 captures: worktree trust and a forged
.gitfolder, a leading--sessionwithchainon stdin,AQ.keys in$D setupand redaction. Captures 004-006 rerun on the fixed tree. No live browser handoff or Gemini call was probed.Agent notes
Lane GSTA-801 for GStack Minder (GST-3483). Failing-first tests: browse/test/proxy-config (#4662), browse/test/handoff (#4330), design/test/gemini-provider (#4239), test/gstack-checks (#4407), test/context-restore-transcripts (#4559). gen:skill-docs --host all regenerated context-restore/sections/transcripts.md. Guard run: typecheck clean; module-size ratchet, parity suite, bun-entry isolation, spawnSync tripwire, gen-skill-docs, browse build and design tests: 744 pass, 0 fail.
/ship run ship-4684-run1 (subagent of GSTA-801). Pre-Landing Review: 16 issues — 0 auto-fixed, 6 asked (4 fixed, 2 skipped), 0 deferred, 10 noted. Gate edits: none detected (GATE_SCAN tagged=0 at 70fa5d6). Review fixes in 70fa5d6 (Review-Finding trailers p1v/outside-voice#1-4). Evals: E2E Evals ran in CI on the pull request.
Approvals
No approvals recorded for branch fix/outside-browse-design.
Plan: exempt: bug fix from outside reports; bug fixes skip /autoplan
Plan check: exempt bug fix