Repository navigation
Conversation
|
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:
📝 WalkthroughWalkthroughAdded IBM Bob as a supported TUI agent. The change covers command and process recognition, launch configuration, permissions, telemetry, preflight identity filtering, default-disabled persistence migration, renderer and mobile presentation, localization, documentation, and automated tests. Bob uses 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 5c0abe47-e804-47eb-be40-e0ebbb9f62eb
📥 Commits
Reviewing files that changed from the base of the PR and between e4e54a1 and 428716bd9c8b337ad1019cc1c07669db2823851f.
⛔ Files ignored due to path filters (1)
src/shared/agent-icons/bob.pngis excluded by!**/*.png
📒 Files selected for processing (32)
README.mdmobile/src/components/mobile-agent-icon-assets.tsmobile/src/tasks/mobile-tui-agents.tssrc/main/ipc/preflight-agent-detection.test.tssrc/main/persistence-settings-update.test.tssrc/main/persistence/loading-store/store.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-favicon-assets.tssrc/renderer/src/lib/agent-status.tssrc/shared/agent-headless-command.tssrc/shared/agent-kind.tssrc/shared/agent-process-recognition.test.tssrc/shared/agent-process-recognition.tssrc/shared/agent-status-types.tssrc/shared/agent-type-label.tssrc/shared/bob-headless-command.tssrc/shared/constants.tssrc/shared/global-settings-types.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-events.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-permissions.test.tssrc/shared/tui-agent-permissions.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent-startup.test.tssrc/shared/tui-agent.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
CodeRabbit feedback addressedBoth unresolved threads are fixed in 1. Flush the first Store before replacing its state file ( 2. Disambiguate the The probe is deliberately negative and fail-open: it drops New tests in
Files modified:
Verification: |
66847c9 to
1a47eb2
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
1a47eb2 to
a0c02e6
Compare
There was a problem hiding this comment.
Actionable comments posted: 4
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 535aa8ea-0f08-4581-8129-23701762b413
📥 Commits
Reviewing files that changed from the base of the PR and between 1a47eb27fcea5de8b9290dbb2509dbc37e2110e6 and a0c02e618ba2712ec30867fbcf06a4d1f9856bf0.
📒 Files selected for processing (13)
README.mdsrc/main/ipc/preflight-agent-detection.test.tssrc/main/ipc/preflight-agent-identity-exclusion.tssrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/shared/agent-process-recognition.test.tssrc/shared/bob-headless-command.tssrc/shared/tui-agent-config-types.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-permissions.test.tssrc/shared/tui-agent-permissions.tssrc/shared/tui-agent-startup-bob.test.tstests/e2e/bob-agent-first-class.spec.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- src/renderer/src/i18n/locales/ko.json
- README.md
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
CodeRabbit feedback addressed (
|
|
Two more items raised on the stacked #15936 review belong to this PR's files and are fixed in
|
|
Follow-up from an internal audit ( |
|
I closed #7698 in favor of this. The 1.0.6 launch path it was built on is a hard error on the current CLI, so rebasing my branch would not have been worth anyone's review time. You asked for a second opinion from someone with Bob installed. I have bobshell 2.0.1 ( The trust menu is real, and With The injected paste lands unsent. Sending a bracketed paste once the composer is up:
Startup is fast enough that injection timing is not a concern. Two fresh-profile runs, measured from spawn: The identity probe passes on 2.0.1. Both anchors in your Worth flagging what that rests on, though. Both anchors are prose, one a tagline and one a flag description, and the probe is fail-open. A reword in a minor Bob release turns it into a silent false positive on the Neovim I could only verify the require side. I do not have MordechaiHadad/bob installed, so Two things I checked and ruled out, in case a reviewer chases either:
AI disclosure: Claude Code assisted with the analysis and with drafting this comment. Every line of output quoted above is from a live bobshell 2.0.1 session I ran on my own machine. |
|
Appreciated — the live-PTY pass answers exactly what this PR couldn't verify from CI, and the license-flag and Your fixture suggestion is in (
🤖 Generated with Claude Code |
f459c3b to
e6dd4bc
Compare
e6dd4bc to
f830002
Compare
Two unresolved review threads on stablyai#14895. Flush the migrated Store before rewriting its state file. The opt-in migration calls scheduleSave(), which debounces a write 1s out; that write could land after the second fixture and clobber it, and the orphaned timer could bleed into later tests in the file. Disambiguate the `bob` executable. MordechaiHadad/bob is a Neovim version manager that also installs as `bob`, and detection treated any PATH hit as IBM Bob once a user opted in. Add an optional detectIdentityExclusion probe, applied only to agents that declare one, and use it to drop `bob` when the help text names Neovim. The probe is deliberately negative and fail-open: an errored, timed-out or unrecognized probe keeps the agent. Requiring a positive IBM Bob signature would risk hiding real installs, since no stable identity string for IBM Bob could be verified. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…xture Both identity-probe anchors are prose and the probe fails open, so a reworded --help on a future Bob would silently false-positive on the Neovim bob. Recording the real 2.0.1 output (commit e6a3e508) makes a fixture refresh either keep matching requirePattern or fail in review, per review feedback on stablyai#14895. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Two unresolved review threads on stablyai#14895. Flush the migrated Store before rewriting its state file. The opt-in migration calls scheduleSave(), which debounces a write 1s out; that write could land after the second fixture and clobber it, and the orphaned timer could bleed into later tests in the file. Disambiguate the `bob` executable. MordechaiHadad/bob is a Neovim version manager that also installs as `bob`, and detection treated any PATH hit as IBM Bob once a user opted in. Add an optional detectIdentityExclusion probe, applied only to agents that declare one, and use it to drop `bob` when the help text names Neovim. The probe is deliberately negative and fail-open: an errored, timed-out or unrecognized probe keeps the agent. Requiring a positive IBM Bob signature would risk hiding real installs, since no stable identity string for IBM Bob could be verified. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…xture Both identity-probe anchors are prose and the probe fails open, so a reworded --help on a future Bob would silently false-positive on the Neovim bob. Recording the real 2.0.1 output (commit e6a3e508) makes a fixture refresh either keep matching requirePattern or fail in review, per review feedback on stablyai#14895. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ELI5
Adds IBM Bob (Bob Shell) as a selectable Orca agent, targeting the current Bob Shell 2.x CLI.
What Changed
Rebase of #7698 (by @kiyeonjeon21) onto current main, plus a retarget from the Bob Shell 1.0.6 CLI it was written against to Bob Shell 2.0.1:
bob chat --trustwith the prompt injected after startup (stdin-after-start). 2.x removed--prompt-interactive;--trustskips the first-launch trust menu that would otherwise swallow the injected paste.--auto-approve(achatoption). 2.x deprecates--yoloand drops into headless mode with it.chatis interactive;run,mcp,-p,--list-tasks,-vare one-shot;-r [task-id]takes an optional value.bob, so a straybobscript is not mistaken for IBM Bob. Probe failures still fail open.tui-agent-config-types.ts(the config module sits at the 300-line cap; any new agent would have tripped it).ORCA_E2E_REAL_BOB=1) against the real binary: New-tab launch identity, auto-approve, Create Workspace defaulting to Bob, Settings pane, tab close stops the process.Bob stays opt-in (
DEFAULT_DISABLED_TUI_AGENTS) with a persistence migration for existing profiles.Supersedes #7698.
Why
Bob Shell 2.x changed its CLI surface; against it the original integration failed at launch (
unknown option '--prompt-interactive') and never opened the TUI in YOLO mode. The flags were verified against the installedbobshell@2.0.1binary (the published docs still describe 1.x).Bob emits no hook events and no OSC title status, so sidebar rows / status dots for Bob panes come in a follow-up (output-status profiles) stacked on this PR; worker dispatch uses the existing prompt-injection path and works today.
Linked Issue
Fixes #7691
Visual Proof
N/A — no new UI surface; IBM Bob renders through the existing agent catalog/picker paths and ships disabled by default, so the first-run appearance is unchanged. The gated e2e spec attaches screenshots of the New-tab menu, the launched pane, and the Create Workspace dialog.
Testing
macOS (Darwin 25.5.0), Node 26.5.1, bobshell 2.0.1:
pnpm vitest runonsrc/shared,src/main/ipc, agent components — passes (the Bob suites: startup, permissions, process recognition, detection).Bob in a PTY (fresh untrusted folder, bracketed paste): no trust menu,
Agent Mode (auto-approve), paste lands unsent in the composer.Live app: Create Workspace with Bob as default → Bob is the worktree's first terminal; orchestration
worker-startwith a Bob worker →input_accepted,succeeded,worker_donereceived.ORCA_E2E_REAL_BOB=1 npx playwright test tests/e2e/bob-agent-first-class.spec.ts --project electron-headless→ 5/5.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Claude (Fable 5) via Claude Code assisted with analysis, implementation and testing; all changes were reviewed and run locally by the author.
Review
Agent skill upstream boundary
N/A