Repository navigation
Conversation
Contributor
|
Thanks Yash! Superseded by #33595 (merged, with your co-author credit). Rejecting sessions with a parent header would also block a legitimate /fork, which writes that header too, and in-memory helpers have no header; #33595 uses the session-start reason and owner session instead. Closing in favor of it. |
nwparker
added a commit
that referenced
this pull request
Oct 25, 2026
…pane (#33595) In-process pi-subagents helper sessions no longer take over the lead Pi session's pane: Orca's Pi status and title extensions keep the first Pi session in the process as owner and only move ownership on new/resume/fork session starts (helpers start with reason startup), so resume ids, turn completion and the title spinner stay with the lead. OMP behaviour is unchanged. Fixes #31526 Supersedes #31739 Co-authored-by: Yash Kakade <[email protected]> Co-authored-by: Brennan Benson <[email protected]>
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.
ELI5
A Pi child session could replace the conversation attached to its terminal pane. Child callbacks now leave the lead session in control.
What Changed
The managed extension checks Pi session provenance before callbacks update pane metadata. It rejects child headers and nested task transcripts.
The current terminal session can still change through
/new,/resume, and/fork. A fork with a parent header can still own the pane. OMP keeps its existing ownership rules.Why
The extension previously accepted every non-OMP callback. A child could therefore post its own session ID after the lead became idle.
Linked Issue
Refs #31526. This draft fixes pane takeover. History grouping remains open.
Visual Proof
The change is in generated hook code. The same generated-extension reproduction produced these payload identities before and after:
Before, the reproduction failed with
Child callback replaced pane identity. After, it passed. No renderer screenshot or live Pi integration run is claimed.Testing
Codex ran
ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/pion macOS: 33 files and 474 tests passed.pnpm run check:code-quality:changedpassed with no new findings.The new tests cover child callbacks before and after the lead, explicit session changes, a cold-resumed terminal fork, and Windows nested paths.
pnpm buildpassed all typecheck projects and built the desktop bundles, CLI, and web client. It stopped at mobile-web because mobile dependencies are absent (react-native-web,expo-router, andreact-native-safe-area-context). Mobile sources and build scripts are unchanged fromorigin/main. This dependency prerequisite was not verified on the base. The full test suite was not run.Full
pnpm lintstops on the upstreamsrc/shared/native-chat-ask.tsmax-lines error (310, maximum 300). That file is unchanged fromorigin/main.AI Disclosure
Codex (gpt-6.1-sol) implemented the change, ran the listed checks, and reviewed the diff. The author still needs to review the draft.
Review
Codex reviewed these areas:
Agent skill upstream boundary
Notes
This draft fixes pane takeover. History grouping needs a separate, reliable child marker. Pi also writes
parentSessionfor normal user forks, so this change does not hide every transcript with that header.Only macOS execution is verified. Linux, Windows, SSH, mobile, and mixed-version behavior need CI or user validation. Existing persisted pane bindings and already-running Pi processes need a new Pi launch before they use this extension.
Author X handle: @Yash_2015.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)