Repository navigation
fix: correct agent commands, shell hooks, and runtime routing - #14838
kaluli123123 wants to merge 57 commits into
Conversation
|
已在本 PR 的最新提交 修复内容:
验证结果:相关 Vitest 测试 31/31 通过, PR:#14838 |
|
验证更新:
当前 PR 状态为 |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Pre-merge checks:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7bdb75e6-b250-44fa-8ae8-71a58078d721
📥 Commits
Reviewing files that changed from the base of the PR and between 1f483c3 and e72fdc943eedcf3627a55f20ba71bc042848b033.
📒 Files selected for processing (15)
src/main/agent-hooks/installer-utils.test.tssrc/main/agent-hooks/runtime-home-hook-command.tssrc/main/cli/packaged-cli-assets.test.tssrc/main/daemon/shell-ready.test.tssrc/main/daemon/shell-ready.tssrc/main/pty/legacy-terminal-shim-dir.test.tssrc/renderer/src/components/right-sidebar/ai-vault-session-worktree-map.test.tsxsrc/renderer/src/store/slices/repos-project-groups-delete.test.tssrc/renderer/src/store/slices/repos-project-groups.test.tssrc/renderer/src/store/slices/repos.tssrc/shared/branch-name-from-work.test.tssrc/shared/branch-name-from-work.tssrc/shared/commit-message-agent-spec.test.tssrc/shared/commit-message-agent-spec.tssrc/shared/harness-injected-user-turns.ts
💤 Files with no reviewable changes (1)
- src/shared/commit-message-agent-spec.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/main/daemon/daemon-bash-shell-ready-rcfile.ts (1)
101-110: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winUnset
PROMPT_COMMANDbefore the scalar assignment.When
PROMPT_COMMANDis an array, the assignment updates element 0 and preserves higher-index elements. Those stale commands still execute after the normalized hook sequence.Add an array-valued integration case to
src/main/daemon/daemon-bash-shell-ready-rcfile.test.ts.Clear the array before assigning the normalized value
- PROMPT_COMMAND="$__orca_joined" + unset PROMPT_COMMAND + PROMPT_COMMAND="$__orca_joined"
🧹 Nitpick comments (1)
src/main/daemon/daemon-bash-shell-ready-rcfile.test.ts (1)
36-41: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winExercise the exact
;;regression.The first fixture ends with
;, not;;. It verifies whitespace trimming but does not exercise the consecutive separators that can create an invalidPROMPT_COMMAND.Add a separate case that ends in
;;. Keep the existing case because it covers whitespace after a separator.Add a consecutive-separator fixture
['printf "TRAILING_SEPARATOR\\n"; ', 'TRAILING_SEPARATOR'], + ['printf "DOUBLE_SEPARATOR\\n";;', 'DOUBLE_SEPARATOR'], [String.raw`printf "ESCAPED_SEMICOLON:%s:END\n" foo\;`, 'ESCAPED_SEMICOLON:foo;:END'],This targets the PR objective to prevent invalid
PROMPT_COMMANDvalues containing;;.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 808b9ef0-75f6-4ccf-be5f-92d99890e47b
📥 Commits
Reviewing files that changed from the base of the PR and between e72fdc943eedcf3627a55f20ba71bc042848b033 and f9763513189719e46bff21aa35c2cda5fca2e467.
📒 Files selected for processing (4)
src/main/crash-reporting/crashpad-capture.test.tssrc/main/daemon/daemon-bash-shell-ready-rcfile.test.tssrc/main/daemon/daemon-bash-shell-ready-rcfile.tssrc/shared/branch-name-from-work.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/shared/branch-name-from-work.test.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.
|
@coderabbitai review |
|
|
@coderabbitai review |
|
|
@coderabbitai review |
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/daemon/daemon-bash-shell-ready-rcfile.test.ts (1)
55-67: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert array-member execution, not only scalar declaration.
The test verifies the declaration type but not the behavior of
ARRAY_FIRSTandARRAY_SECOND. Add assertions that both markers execute once and thatARRAY_FIRSTprecedesARRAY_SECOND. Do not rely only ondeclare -p, because the declaration can contain command text without executing it.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9a8a1451-d82c-43dd-bcb1-be0acab8af43
📥 Commits
Reviewing files that changed from the base of the PR and between f9763513189719e46bff21aa35c2cda5fca2e467 and 6c93bc85761f1db8b47f8e9f1f230e7e7d991539.
📒 Files selected for processing (2)
src/main/daemon/daemon-bash-shell-ready-rcfile.test.tssrc/main/daemon/daemon-bash-shell-ready-rcfile.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/main/daemon/daemon-bash-shell-ready-rcfile.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
@coderabbitai review |
✅ Action performedReview finished.
|
366add3 to
a6a8bd9
Compare
nwparker
left a comment
There was a problem hiding this comment.
I reproduced the Pi portion with the real Pi 0.83.0 CLI and an isolated extension provider backed by a local OpenAI-compatible endpoint. Arguments came from the current production agent spec. With --no-extensions, the CLI exits 1 with Model "orca-proof/local" not found and makes zero endpoint requests. Removing that one flag produces the expected generated commit text, exit 0, and one endpoint request.
This strengthens the Pi mechanism evidence, but does not verify the reporter’s Windows + LM Studio installation or the unrelated fixes in this multi-issue PR. I am leaving #14951 open and am not marking this PR fully verified or merge-ready. A focused Pi follow-up should retain the existing contributor attribution and run the reported provider environment before closure.
|
The Pi extension-provider fix is isolated in #20070, adapted from this PR and credited to @kaluli123123. It removes only Pi's Real Pi0.84.2 CLI + Orca's production planner now pass baseline/fixed checks on macOS, Linux and Windows: baseline fails with model-not-found and zero provider requests; the fix returns expected output and makes exactly one request. A separate native Windows host run agrees. Fresh Source Control UI proof is in progress before merge. This avoids coupling #14951's fix to the other changes in this broader PR. |
|
@nwparker Thanks — and confirmed from this side: #20070 covers the Pi part of this PR exactly. Both change That leaves six groups here that #20070 does not touch. They are independent of each other, so splitting them the way you split the Pi fix looks right:
Group 1 is the substantive one; 3 through 6 are one- or two-line fixes with a regression test each. How would you like to proceed? I can open them as separate PRs in whatever order is useful to you and close this one, or start with group 1 alone and leave the small ones here. Say which and I will do that rather than guess — I would rather not open six PRs you did not ask for. |
|
Merged current main ( Validation: 206 tests across 11 routing, Git-plan, history and real-Bash suites passed; renderer typecheck and focused oxlint/formatting passed. Full repository lint/test/build and manual Electron/SSH/platform checks were not run. Current-head GitHub CI remains a separate gate. |
|
Merged main ( Validation: 177 focused tests across 10 files passed, including the real Bash regression. All four project typechecks and full lint passed during the merge validation; the final fixture-only cleanup additionally passed renderer typecheck, focused tests, formatting and all seven changed-code quality gates. The built CLI help smoke, desktop/WSL-guest bundling, and mobile-web build/verifier passed. Native packaging still fails when the unchanged macOS helper build reaches The maintainer's split-before-merge request remains outstanding. This conflict refresh does not satisfy that structural requirement; no replacement PR was created and this PR was not closed. |
|
Merged current main ( Validation: 135 focused tests across eight suites passed, including real Bash execution; all configured project typechecks, full lint, formatting, PR-scoped whitespace and all seven changed-code quality gates passed. Built CLI help and the desktop/mobile-web build stages passed. The full-suite attempt was stopped at its 240-second limit after reporting two existing-folder runtime test failures and six process-host development-rebuild failures; no full-suite pass or baseline attribution is claimed. Native packaging still fails at The maintainer's split-before-merge request is still outstanding. This conflict refresh does not satisfy it; no replacement PR was opened and this PR was not closed. Follow-up validation: the original eight failing watcher/folder cases were isolated to lexical Residual diagnostics found an unmet DNS prerequisite: Native packaging is blocked by a concrete Swift 6.4 output-layout mismatch: default |
Preserve ordinary user XML while removing complete leading known harness wrappers at the downstream branch naming boundary. Focused split of stablyai#14838; source tree matches the locally reviewed and validated tree.
Treat blank single-select names and iteration titles as empty in the shared grouping/sorting predicate. Preserve both-direction ordering and rendered-board coverage. Focused project-empty-fields split of stablyai#14838; Fixes stablyai#34692. Final tree matches the locally validated tree.
|
Closing this aggregate PR as fully superseded by the published split PRs requested in #14838 (comment):
The historical Pi, Kimi, SYSTEMROOT and source-host move implementations already exist in current main or their dedicated upstream changes; they were not reintroduced. All remaining unique production/test contributions from the aggregate were assigned to the split boundaries. This closure is based on supersession, not CI status or missing permissions. The replacement PRs remain subject to their individual review, CI and platform-validation gates; this does not claim they are merged or fully validated. The original branch is preserved. |
ELI5
This PR retains runtime-owner routing and deletion fixes for project groups, removes an unsupported Kimi argument, and keeps harness metadata out of branch-name prompts. It also retains Bash execution-order regression coverage. The earlier Pi implementation is already covered by main and is not part of the current diff.
What Changed
--quietargument.The Pi extension-enabled command plan is already in main; this PR no longer carries a separate Pi production change. The split-before-merge request remains outstanding. Updating this branch does not satisfy it or establish that the remaining fixes are fully superseded.
Why
Each change restores the existing behavior expected by its linked issue while keeping the fix at the narrowest affected boundary. No new dependencies or public APIs are introduced.
Linked Issue
Fixes #14771
Fixes #14849
Fixes #14789
Visual Proof
N/A — these fixes do not change visual layout or interaction design.
Testing
Historical verification on 2026-10-21 at current head
5f79585b80:TMPDIR=/private/tmp; it did not finish and reported 87 failures across eight files. No full-suite pass is claimed. DNS prerequisites and a narrow Bun/Node PTY control were diagnosed; residual WSL/OpenCode failures are not blanket-classified as baseline..build/out/Products/Release, while the unchanged packaging script expects per-triple inputs. No independent passing native build is claimed.Existing detailed validation and source-identity evidence. These are historical executions, not new runs on 2026-10-22. Exact-head PR Checks, full/native/platform validation and the split-before-merge request remain gates.
AI Disclosure
Codex (GPT-5) assisted with implementation, regression coverage, verification, and PR description updates.
Review
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — dated focused/static checks passed; full-suite attempt remains incomplete and native packaging failed, as documented above.Author