Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 8f1f258 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
|
❌ Nix build failed Hash mismatch in
Please update |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ffa738231
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: caa9ffba44
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ffca4e7d5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c936ad328d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
This reverts commit caa9ffb.
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f1f25814a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| this.host.programStatus?.startSubagent({ | ||
| agentId: event.subagentId, | ||
| title: event.description ?? event.subagentName, | ||
| taskId: event.taskId, | ||
| }); |
There was a problem hiding this comment.
Clear aborted foreground subagent status records
When a turn is cancelled while a foreground-only subagent is running, v2 emits no completed, failed, or cancelled lifecycle event for that child, so this new working record is never settled or removed. handleTurnEnd already compensates for the same lifecycle gap by dropping foreground-only activity records, but later turns only clear settled program-status children; the stale child therefore remains working until the session resets. Remove foreground-only program-status children when their owning turn ends while preserving agents represented by background-task state.
Useful? React with 👍 / 👎.
| // Flushing it would turn a delayed tail into text and an OSC's BEL | ||
| // terminator into Ctrl+G (the external editor shortcut). Other input, | ||
| // including Alt+] followed by text, must retain bounded recovery. | ||
| if (TERMINAL_REPLY_HEADER_PATTERN.test(this.buffer)) return; |
There was a problem hiding this comment.
Bound incomplete terminal-reply buffering
If a recognized OSC/DCS/APC reply is truncated after its header—for example, an OSC 7501 reply loses its BEL/ST terminator—this return leaves the buffer without any timeout. Subsequent printable keys, Enter, and Ctrl-C are appended to the unterminated control string and never emitted; recovery requires another ESC/CAN/SUB and discards the intervening input. Keep a bounded stale-reply timeout that discards the incomplete reply, with a regression test for input recovery.
AGENTS.md reference: packages/pi-tui/AGENTS.md:L11-L15
Useful? React with 👍 / 👎.
| this.mountEditorReplacement(panel, undefined, () => { | ||
| this.activeApprovalPanel = undefined; | ||
| this.patchLivePane({ pendingApproval: null }); | ||
| this.approvalController.cancelAll('Approval panel displaced', false); |
There was a problem hiding this comment.
Clear prompt state when displacing reverse-RPC panels
When a non-RPC panel replaces an approval and no other reverse-RPC prompt is queued, this callback cancels through the new dismiss path rather than hideApprovalPanel, so notifications.setPrompt(false) never runs; the analogous question callback has the same problem. On short fullscreen terminals, the Updates panel consequently remains folded as though a prompt still needs its rows after the prompt is gone. Clear the prompt bookkeeping during displacement without restoring the editor.
Useful? React with 👍 / 👎.
| // When the last shell command finishes, leave the shell streaming phase, | ||
| // release one queued message (if any), and refresh the activity pane. | ||
| if (this.shellOutputStreams.size === 0) { | ||
| this.programStatus.finishShell(); |
There was a problem hiding this comment.
Report nonzero shell exits as errors
When a foreground shell command completes normally with isError: true—the resolved result used by ShellCommandService for a nonzero exit—this unconditional call records the outcome as idle. Only promise rejection calls failRequest, so OSC 7501 reports success-like idle status even though the transcript marks the command as failed. Select the error or successful completion path from isError before clearing the shell phase.
Useful? React with 👍 / 👎.
Requirement or Bug
在交互式 TUI 中支持 OSC 7501 根状态与后台子代理记录;分支同时包含 pi-tui 的上游 v1.4.0 baseline。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
根记录按“当前可见阻断 → 仍有 Agent 工作 → 最后结算结果”的优先级汇总。每个后台子代理另有记录;正常停止和直接退出都会清除全部记录。中英文交互指南与环境变量参考同步更新;OSC 7501 包含三个对应 changeset,baseline 另有两个,图片转码缓存修复另有一个。
Behavior Changes and Affected Users
PI_PROGRAM_STATUS=0禁用,1强制上报/tasks中管理setProgramStatus为可选能力kimi -p、desktop、web、ACP 及 OSC 9 / OSC 9;4 的既有行为对应测试覆盖:
git diff --check均通过;pnpm lint为 0 errors。Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.