Repository navigation
Conversation
There was a problem hiding this comment.
Important
The managed-hook install path enforces Bob's identity exclusion only locally. Over SSH and in WSL, bobHookService.installRemote still writes ~/.bob/settings/settings.json for a user whose bob is MordechaiHadad's Neovim version manager — the exact collision this PR sets out to fix for the whole bug class.
Reviewed changes
- IBM Bob agent registration — new
TuiAgentwired through the catalog, i18n (5 locales), icons, detection commands, telemetry, auto-pick order, and process recognition. - Managed status hooks —
BobHookServiceinstall/remove/status against~/.bob/settings/settings.json, plus the SSH/WSL remote installer entry. - Hook listener — Bob event normalization (
SessionStart/UserPromptSubmit/PreToolUse/PostToolUse/Stop), new-turn routing, and resume by the hooksession_id. - Identity exclusion infrastructure — shared serialize/probe/exclude helpers, absolute-path resolution threaded through local preflight, WSL, and the relay, and a local managed-hook install gate.
- Default-off rollout —
DEFAULT_DISABLED_TUI_AGENTS = ['bob']plus a one-shot profile migration. - Type split —
tui-agent-config-types.tsextracted fromtui-agent-config.ts. - E2E validation — a gated real-binary first-class-agent spec.
⚠️ Remote hook install never forwards Bob's identity exclusion
buildManagedHookDetectionCommands builds { id, cmd } and never attaches identityExclusion, so the relay's excludeMisidentifiedAgents is a no-op for every managed-hook detection request. On SSH and WSL this is the allowlist that decides whether to run installRemote, so the Neovim-bob collision guard is bypassed exactly where the PR claims it is enforced. The local path (preflight detection and agentsFailingHookInstallIdentityProbe) is correctly gated, which is why the new local tests don't catch it.
Technical details
# Bob identity exclusion is not forwarded to remote hook-install detection
## Affected sites
- `src/main/agent-hooks/managed-hook-detection-commands.ts:29` — emits `{ id: target.tuiAgent, cmd }`; never reads `TUI_AGENT_CONFIG[...].detectIdentityExclusion`.
- `src/main/ssh/ssh-relay-session.ts:1373` — sends that command list to `preflight.detectAgents` to build the remote install allowlist.
- `src/main/agent-hooks/wsl-hook-fs-adapter.ts:34` — same builder for the WSL guest install allowlist.
- `src/shared/tui-agent-identity-exclusion.ts:83-88` — `keepsDetectedAgent` only probes when `command.identityExclusion` is present; absent means "keep".
- Contrast `src/shared/tui-agent-detection-commands.ts:42-44`, which serializes the exclusion for `KNOWN_TUI_AGENT_DETECTION_COMMANDS` (the local/preflight path).
## Required outcome
- A remote/WSL `bob` that `bob --help` identifies as the Neovim version manager must not be reported as detected, so `bobHookService.installRemote` never creates `~/.bob/settings/settings.json` for that user.
- Add `identityExclusion: serializeIdentityExclusion(TUI_AGENT_CONFIG[target.tuiAgent].detectIdentityExclusion)` to each emitted command, mirroring the shared builder, and add a test that drives `buildManagedHookDetectionCommands` through the relay's `excludeMisidentifiedAgents`.
## Open questions for the human
- If remote installs are intentionally out of scope for the exclusion, narrow the PR description's "created locally, over SSH, and into WSL … Fixed for the whole bug class" to local.ℹ️ Nitpicks
src/main/bob/hook-settings.ts:17— "It has no Notification or PermissionRequest hook, sowaitingrides on PreToolUse" conflicts with the design: this PR deliberately has no Bobwaitingstate and mapsPreToolUsetoworking(the approval modal staysworking). Worth rewording so it doesn't re-suggest the dead predicate this PR removed.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
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. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (1)
src/renderer/src/runtime/agent-resume-host-authority-capability.test.ts (1)
56-56: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winAdd a host-advertisement assertion for Bob.
RUNTIME_CAPABILITIESalready containsAGENT_SESSION_BOB_RESUME_RUNTIME_CAPABILITY, but this test does not verify that contract. Add the equivalenttoContainassertion used for Kimi.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: cf9df6db-76a7-48b7-b449-acff50a76c5b
📥 Commits
Reviewing files that changed from the base of the PR and between 403b62a and 46fe40acde35269a7dfb8c64f26d1c98643d0340.
⛔ Files ignored due to path filters (1)
src/shared/agent-icons/bob.pngis excluded by!**/*.png
📒 Files selected for processing (86)
README.mdconfig/tsconfig.cli.jsonmobile/src/components/mobile-agent-icon-assets.tsmobile/src/session/mobile-new-tab-agent-options.test.tsmobile/src/tasks/mobile-tui-agents.tsmobile/src/tasks/workspace-agent-selection.test.tssrc/cli/runtime-client-deferral.test.tssrc/main/agent-hooks/managed-agent-hook-controls.tssrc/main/agent-hooks/managed-agent-hook-registry.tssrc/main/agent-hooks/managed-hook-identity-gate.test.tssrc/main/agent-hooks/managed-hook-identity-gate.tssrc/main/agent-hooks/managed-hook-local-filesystem.test.tssrc/main/agent-hooks/remote-hook-aggregate-installer.test.tssrc/main/agent-hooks/remote-hook-service-installers.test.tssrc/main/agent-hooks/remote-managed-hook-installers.tssrc/main/agent-hooks/server-retired-pane-new-turn.test.tssrc/main/bob/hook-service.test.tssrc/main/bob/hook-service.tssrc/main/bob/hook-settings.tssrc/main/ipc/command-path-resolver.test.tssrc/main/ipc/command-path-resolver.tssrc/main/ipc/local-agent-install-dir-detection.tssrc/main/ipc/preflight-agent-detection-no-subprocess.test.tssrc/main/ipc/preflight-agent-detection.test.tssrc/main/ipc/preflight-agent-refresh.test.tssrc/main/ipc/preflight-command-exec.tssrc/main/ipc/preflight-host-cli-status.test.tssrc/main/ipc/preflight-remote-ssh.test.tssrc/main/ipc/preflight-test-harness.tssrc/main/ipc/preflight-wsl-agent-detection.test.tssrc/main/ipc/preflight-wsl-agent-detection.tssrc/main/persistence-settings-update.test.tssrc/main/persistence/loading-store/normalize-loaded-global-settings.tssrc/main/persistence/loading-store/prepare-loaded-profile-settings.tssrc/main/preflight/agent-detection.tssrc/main/preflight/preflight-identity-probe.tssrc/relay/preflight-handler.test.tssrc/relay/preflight-handler.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-draft-readiness.tssrc/renderer/src/lib/agent-favicon-assets.tssrc/renderer/src/lib/agent-status.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.test.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.tssrc/shared/agent-headless-command.tssrc/shared/agent-hook-listener-claude-compatible-vendors.test.tssrc/shared/agent-hook-listener/provider-dispatch.tssrc/shared/agent-hook-listener/provider-event-routing.tssrc/shared/agent-hook-listener/providers/bob-events.tssrc/shared/agent-hook-listener/source-routing.tssrc/shared/agent-hook-relay.tssrc/shared/agent-hook-types.tssrc/shared/agent-kind.tssrc/shared/agent-process-recognition.test.tssrc/shared/agent-process-recognition.tssrc/shared/agent-session-resume.tssrc/shared/agent-type-label.tssrc/shared/bob-headless-command.test.tssrc/shared/bob-headless-command.tssrc/shared/default-global-settings.tssrc/shared/draft-paste-ready-scanner-grok-trace-replay.test.tssrc/shared/draft-paste-ready-scanner.tssrc/shared/global-settings-types.tssrc/shared/local-agent-install-dir-detection.tssrc/shared/node-package-script-entrypoints.tssrc/shared/protocol-version.tssrc/shared/require-tui-agent-config.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-property-schemas.tssrc/shared/tui-agent-config-types.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-detection-commands.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-identity-exclusion.test.tssrc/shared/tui-agent-identity-exclusion.tssrc/shared/tui-agent-permissions.test.tssrc/shared/tui-agent-permissions.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent-startup-bob.test.tssrc/shared/tui-agent.tstests/e2e/bob-agent-first-class.spec.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 925787ef-d34a-47ee-b4c5-67ab2357e7be
📥 Commits
Reviewing files that changed from the base of the PR and between 46fe40acde35269a7dfb8c64f26d1c98643d0340 and e55f1416daa66d9c76daeffbdb3ea13723dedfa9.
📒 Files selected for processing (11)
src/main/runtime/__fixtures__/bob-approval-command.meta.jsonsrc/main/runtime/__fixtures__/bob-approval-command.txtsrc/main/runtime/__fixtures__/bob-approval-subagent.meta.jsonsrc/main/runtime/__fixtures__/bob-approval-subagent.txtsrc/main/runtime/orca-runtime-create-terminal-side-effect-command-code-detector.tssrc/main/runtime/orca-runtime-get-unpersisted-tracked-title-for-pty.tssrc/main/runtime/orca-runtime-on-pty-data.tssrc/main/runtime/runtime-terminal-state-records.tssrc/shared/bob-approval-prompt.test.tssrc/shared/bob-approval-prompt.tssrc/shared/synthetic-agent-title.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
Important
The new Bob approval detector re-fires many times for a single modal whenever it is painted across PTY chunks, and the transcript tests assert only > 0, so the re-fire is invisible to the suite.
Reviewed changes
- Added
src/shared/bob-approval-prompt.ts— an edge-triggered screen detector for Bob's command and subagent-spawn approval modals, self-armed by thebob chatlaunch command or the composer banner. - Wired it through
RuntimePtyTitleTrackerEntry.bobApprovalDetector, created unconditionally in the per-PTY title tracker, observed fromonPtyData, and emitted as awaitingagent-status row. - Registered Bob in
SYNTHETIC_AGENT_TITLE_AGENTS/ profiles so thewaitingrow drives the "Bob - action required" title and its BEL. - Added committed 120x40 Bob 2.0.2 approval transcripts and a detector unit suite.
ℹ️ The detector's waiting row has no in-band clear
The detector only ever emits waiting; it never emits a working/done when the modal clears. Clearing therefore depends entirely on a Bob hook (PostToolUse/Stop) arriving afterward. With managed hooks absent — they are the same feature this PR adds, so an install failure or an opt-out leaves the screen scraper running alone — a pane that hits one approval modal stays "action required" until the 30-minute AGENT_STATUS_STALE_AFTER_MS window elapses.
Technical details
# Detector emits `waiting` with no matching unblock signal
## Affected sites
- `src/main/runtime/orca-runtime-create-terminal-side-effect-command-code-detector.ts:44-55` — `onApprovalPrompt` always emits `{ state: 'waiting', agentType: 'bob' }`.
- `src/shared/bob-approval-prompt.ts:85-124` — `observe` sets `armed`/`carryOver` but has no "modal cleared" callback.
- `src/shared/agent-status-freshness.ts:7` — `AGENT_STATUS_STALE_AFTER_MS = 30 * 60 * 1000`.
## Required outcome
- A pane whose modal was dismissed but whose hooks are missing/disabled must not advertise "action required" for up to 30 minutes.
## Open questions for the human
- Is the intended contract "screen detector only ever probes, hooks are always the authority that clears it"? If so, is it acceptable that the detector's row can outlive its modal when hook install failed? A paired screen-cleared signal (or refusing to emit at all unless a managed hook is confirmed installed for the pane) would close the gap.openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Addressed the pullfrog and CodeRabbit review rounds in e7a1a858ec (inline threads answered individually). Review-body findings:
Verification: |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: dc267cc7-4b27-4d72-b8e6-7ad4467ecf34
📥 Commits
Reviewing files that changed from the base of the PR and between e55f1416daa66d9c76daeffbdb3ea13723dedfa9 and e7a1a858ecdeee59b008d373db53a58db2fb47dd.
📒 Files selected for processing (17)
config/tsconfig.cli.jsonmobile/src/tasks/mobile-tui-agents.tsmobile/src/tasks/workspace-agent-selection.test.tssrc/main/agent-hooks/managed-agent-hook-controls.tssrc/main/agent-hooks/managed-hook-detection-commands.test.tssrc/main/agent-hooks/managed-hook-detection-commands.tssrc/main/agent-hooks/managed-hook-identity-gate.test.tssrc/main/agent-hooks/managed-hook-identity-gate.tssrc/main/bob/hook-settings.tssrc/main/runtime/orca-runtime-bob-approval-status-order.test.tssrc/main/runtime/orca-runtime-create-terminal-side-effect-command-code-detector.tssrc/main/runtime/orca-runtime-on-pty-data.tssrc/shared/agent-hook-listener-claude-compatible-vendors.test.tssrc/shared/bob-approval-prompt.test.tssrc/shared/bob-approval-prompt.tssrc/shared/tui-agent-identity-exclusion.test.tssrc/shared/tui-agent-identity-exclusion.ts
🚧 Files skipped from review as they are similar to previous changes (10)
- src/main/runtime/orca-runtime-create-terminal-side-effect-command-code-detector.ts
- mobile/src/tasks/workspace-agent-selection.test.ts
- src/main/runtime/orca-runtime-on-pty-data.ts
- src/main/bob/hook-settings.ts
- mobile/src/tasks/mobile-tui-agents.ts
- src/main/agent-hooks/managed-hook-identity-gate.test.ts
- src/main/agent-hooks/managed-agent-hook-controls.ts
- src/shared/agent-hook-listener-claude-compatible-vendors.test.ts
- src/shared/tui-agent-identity-exclusion.test.ts
- src/shared/tui-agent-identity-exclusion.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
@greptile-apps review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the single new commit e7a1a858ec since the prior pullfrog review, which addresses the prior findings on identity probes, the approval detector, and status ordering. All three prior pullfrog threads are resolved and the fix lands with exact assertions; the touched suites (bob-approval-prompt, managed-hook-detection-commands, managed-hook-identity-gate, tui-agent-identity-exclusion, the new status-order test, listener, remote installers, relay) all pass.
- Forwarded each managed-hook target's
serializeIdentityExclusionthroughbuildManagedHookDetectionCommands, so the SSH/WSL install allowlists' same-named-tool probe now actually runs. - Reworked
agentsFailingHookInstallIdentityProbeto reuseexcludeMisidentifiedAgentsover the same candidate list (including the Settings command override) and to keep an agent when any found candidate proves to be the real one. - Rewrote the Bob approval detector's edge-trigger: rolling carry-over, disarm only when the composer reappears without a modal, and ignore matches living only in the carried tail. Transcript tests now assert exact counts (1 command / 2 subagent) at 64/512/4096-byte writes.
- Emitted Bob's approval
waitingafter the chunk's own OSC statuses so a same-chunkworkingcannot overwrite it, with a new ordering test. - Treated null/malformed
disabledTuiAgentson mobile as the opt-out default and exportedisMobileTuiAgentEnabled, now consumed by three mobile selection hooks. - Updated the stale
waitingcomment inbob/hook-settings.tsand tightened the BobSessionStartlistener assertion totoBeNull().
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 26758a94-85ed-46fe-859e-f18a1351f0e9
📥 Commits
Reviewing files that changed from the base of the PR and between e7a1a858ecdeee59b008d373db53a58db2fb47dd and 6e79e07ce4fc685d5c6294a116bb37e21c16ae7f.
📒 Files selected for processing (2)
src/shared/bob-approval-prompt.test.tssrc/shared/bob-approval-prompt.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/shared/bob-approval-prompt.test.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the single new commit 6e79e07ce4 since the prior pullfrog review — a targeted fix to the Bob approval detector's cross-write edge trigger.
- Replaced the carried-tail boolean check (
matchIsOnlyCarriedOver) with a differential match count (hasNewMatch), so a second modal that completes across a PTY write boundary still fires while the carried tail retains the first. Verified the count only ever increases against the previous tail (which is a literal prefix of the assembled frame), so a stale modal scrolling out of the 512-char window cannot suppress a new one. - Added a regression test pinning the split-second-modal case: after a subagent modal fires and the idle composer disarms the detector, a second subagent modal split across three writes fires exactly once.
- Switched the composer disarm to the same differential check (using a global clone of
BOB_BANNER_RE) and inlined the removedtextShowsBobComposerhelper.
The existing detector suite and the waiting-ordering test both pass (18 tests), and matchAll on the shared module-level global regexes does not mutate lastIndex, so the cached pattern clones are safe to reuse.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
6e79e07 to
6940779
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the two commits added since the prior pullfrog review. The head branch was rebased in between (all SHAs changed; the previously reviewed 6e79e07ce4 is now 6075a8bcbe), so the scope is the net delta of those two commits.
- Gated the Bob approval detector's composer disarm on input.
observeInput()setsinputSinceModal = armed, a modal match resets it, and the composer arm only disarms oninputSinceModal && showsComposer && hasNewMatch(banner). A modal repaint under a repainting composer (the subagent-spawn case) or an arrow-key redraw can no longer clear thewaitingrow — a resize no longer re-fires it. - Wired
notePtyInputthrough the local input paths: a new public method onOrcaRuntimeWithCreateTerminalSideEffectCommandCodeDetector(inherited byOrcaRuntimeService), called fromwritePtyInput/writePtyInputAcceptedandwritePtyFromRuntimeController, with the affected runtime fixtures updated. - Tightened the detector suite for the new contract: new no-re-fire cases for a composer repaint under an unanswered modal and for cursor input, and the transcript
it.eachnow takes anacceptedAtoffset, asserting 2 fires with the answer and 1 without. - Reconciled with main's hook contract and assertion gate: registered Bob's
getBobManagedCommand/getBobRemoteManagedCommandin the managed-hook command contract, replaced the remotesettings.jsoncast withparseHooksJsonText(returnsnullon parse failure or a non-object top level), dropped the duplicaterunProcessmock in the relay test, and swapped the remaining type assertions for typed values orSAFETY:-annotated disables.
The touched suites pass locally: bob-approval-prompt, orca-runtime-bob-approval-status-order, managed-hook-command-contract, managed-hook-detection-commands, bob/hook-service, tui-agent-identity-exclusion, the four PTY IPC suites, and relay/preflight-handler (172 tests). All prior Pullfrog threads are resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
6940779 to
d474390
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the two commits added since the prior pullfrog review (the branch was rebased, so the previously reviewed 69407794f3 is now 5ee015f357); scope is the net delta.
- Split the preflight probes into their own modules — moved
isGhAuthenticated/isGlabAuthenticatedintopreflight/preflight-cli-auth.tsandprobeCommandVersion/runIdentityProbeintorelay/relay-command-probes.ts, keepingagent-detection.tsandpreflight-handler.tsunder the 300-line cap. The moves are verbatim (same timeouts, samerunProcess/execFilecalls), the remaining imports in both source files are still used, and the relay test'svi.mockstill covers the moved probe because the new module imports the same specifier. - Restored main entries the rebase had dropped — re-added
freebufftoTUI_AGENT_CONFIG_SOURCEandpreflightTrust: 'antigravity'to the antigravity config. Both are present again in main, and I found no other rebase-loss deletions in the full diff (scanned every removed line for agent-config keys).pnpm tcand the relay/preflight/runtime-startup suites (83 tests) pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Just adding some positive real-world feedback: I’ve been using a build created directly from this PR for almost two weeks, and the integration with IBM Bob has been working very reliably. I’d really appreciate it if the maintainers could move this toward merging. Having to continuously rebuild Orca myself to use IBM Bob adds unnecessary friction, especially when the implementation already appears stable in daily use. |
|
@greptile-apps review |
d474390 to
4a4e2d0
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the branch after it was rebased onto current main (all SHAs changed; the previously reviewed head d47439035c is now 4a4e2d0eb3). The scope is the net delta against the new base: it is a rebase reconciliation, and Bob's own logic is unchanged.
- Antigravity trust restored — re-added
preflightTrust: 'antigravity'totui-agent-config.tsso the file matches main; the diff no longer removes it. freebuff→command-codeadopted — the icon, catalog, favicon, and mobile icon lists now use main's renamed agent (command-code), and the head commit no longer restoresfreebuffbecause main itself renamed it.- Moved import repointed —
managed-hook-detection-commands.tsnow importsTuiAgentDetectionCommandfromshared/tui-agent-detection-commands(main moved it out ofmain/ipc). - New-main agents carried as context —
musesits alongside Bob in the hook registries, source/target arrays, headless matcher, resume list, and capability list; Bob's own files (hook service, approval detector, identity exclusion, runtime wiring, fixtures) are byte-identical to the approved revision, and the remote-installer tests use main's dynamicREMOTE_MANAGED_HOOK_INSTALLER_AGENTS.lengthwith the aggregate cases inremote-hook-aggregate-installer.test.ts.
Verified pnpm tc (node/cli/web) is clean and the targeted suites (quick-workspace-agent-selection, tui-agent-startup-bob, managed-hook-detection-commands) pass. No prior Pullfrog threads remain open.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
4a4e2d0 to
6bf0f60
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the branch after it was rebased onto a newer main (all 27 commit SHAs were re-created; the previously reviewed head 4a4e2d0eb3 is now 6bf0f601df). Because the two tips sit on different bases, a plain old-vs-new diff is almost entirely intervening main commits, so I used git range-diff to isolate the PR patch: every Bob-authored commit is patch-identical, and each difference below is the patch coexisting with main's newer code — no Bob behavior changed. pnpm tc (node/cli/web) is clean and the 11 targeted Bob/runtime suites (99 tests) pass.
- Coexisting with main's new
zcodeagent —zcodeis threaded alongsidebobin every registry, union, and ordered array (agent kinds, hook sources/targets, managed-hook installers and refreshers, remote installer list, resume list and capability, i18n locales, icons, catalog, process-recognition entrypoints) without perturbing Bob's entries. comparableScriptPath→comparablePath— main moved the path-normalizing helper intoagent-command-line-entrypoint.ts;bob-headless-command.tsandagent-process-recognition.tsnow import it. The implementation is byte-identical to the removed helper, so Bob's path matching is unchanged.- Agent-session PTY write gate removed by main —
write-input.ts,operations.ts, andcontroller.tslost main's write gate. Bob'snotePtyInputcalls survive on both input paths, andwritePtyFromRuntimeControllernow threadsdepsso the runtime call still resolves. - Antigravity trust restore —
preflightTrust: 'antigravity'is re-added sotui-agent-config.tsmatches main. - Registration/ordering preserved — Bob stays after
autohandinTUI_AGENT_AUTO_PICK_ORDER, inDEFAULT_DISABLED_TUI_AGENTS = ['bob'], and inSYNTHETIC_AGENT_TITLE_AGENTS; the one-shot profile migration and resume gate are unchanged.
No prior Pullfrog threads remain open (all were resolved on earlier revisions), and no new issues surfaced in this delta.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
6bf0f60 to
afe1a09
Compare
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior pullfrog review. The branch was rebased again onto a newer main, so this run covers the rebase reconciliation plus the one new head commit afe1a0921f; git range-diff confirms every Bob-authored commit is patch-identical and each difference is Bob's code coexisting with main's newer code. pnpm tc:node/tc:cli/tc:web are clean and 18 targeted suites (277 tests) pass.
- Rebased onto a newer
main— main'sqoder,codebuddy, anddshagents are threaded alongside Bob through every registry, union, and ordered array, without disturbing Bob's entries. - Folded Bob's package-path boundary into main's module —
isNodePackageScriptPathmoved from the parallelnode-package-script-entrypoints.tsinto main'sagent-node-package-entrypoints.ts, and the parallel module was deleted;agent-process-recognition.tsandbob-headless-command.tsnow share it, so the segment-boundary rule cannot diverge between the recognizer and the headless matcher. - Recorded Bob's rest signal —
bob: 'synthetic-title'added to the exhaustive rest-signal table, derived from Bob'sSYNTHETIC_AGENT_TITLE_PROFILESentry. - Test-harness follow-ups — split the Bob hide-migration test into two fresh-profile cases, stubbed
notePtyInputin the write-input test runtime, and merged the identicalopencode/opencode2icon branches to keepagent-catalog.tsxunder itsmax-linescap.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
384100f to
bb37a28
Compare
|
@greptile-apps review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the two commits added since the prior pullfrog review (the branch was rebased, so 384100f159 is now c69805aefd; the net delta is 783c3ed12c and bb37a282e2). Both are self-initiated fixes with tests. The touched suites (local-agent-cli-presence 12, managed-hook-identity-gate 7, AgentsPane 34) pass and pnpm tc:cli is clean.
- Shared the identity-gate's candidate resolution with presence detection — new
resolveLocalAgentCommandreuses the private helpers behinddetectLocalManagedAgentCliPresence(~expansion, relative PATH entries kept, relative path-shaped command rejected), andagentsFailingHookInstallIdentityProberesolves each candidate once into acmd → programmap and probes the resolved program. A real Bob reached via~/bin/bobor a relative PATH entry can no longer be shadowed by an unrelated same-namedbob;buildManagedHookIdentityProbeno longer re-resolves, andcommand-path-resolver.tsleaves the CLI project's explicit include list. - Indexed only the executable in agent settings search —
buildAgentSettingsKeywordsnow indexesagent.cmd's executable token instead of the whole command, so Bob'sbob chat --trustno longer contributestrustto the Agents section where the host-only folder-trust row is hidden.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
bb37a28 to
fba7b65
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the two commits added since the prior pullfrog review (bb37a282e2, now c6427b1630). The first is a self-initiated fix restoring Bob's identity probe after main's detection refactor; the second meets main's newer agent-integration requirements. No new issues found, and no prior Pullfrog threads remain open.
- Restored local/WSL identity exclusion in agent detection — main merged local and WSL detection into
detectAgentCommandsOnHost, which returned only command names, so the rebase had dropped the identity probe fromdetectInstalledAgents. NewresolveAgentCommandPathsOnHostreturns each found command's resolved executable (WSL viadetectWslCommandsOnPath, local viaresolveLocalCommandPath+resolveCommandsInInstallDirs);detectAgentCommandsOnHostderives its set from the resolver's keys so Qoder callers are unchanged;detectInstalledAgentsbuildsbuildIdentityProbeover those paths and runsexcludeMisidentifiedAgents, so the Neovim-bobcollision is excluded again on both hosts. - Met main's newer agent-integration requirements — registered Bob in the readiness-census transcript catalog with a synthetic baseline and four approval-transcript baselines, added
bob: 'tui-idle'to the readiness-lane table, kept "IBM Bob" untranslated in the locale policy, added the French catalog label, listed Bob on the docs supported-agents page, and covered Bob's resume capability in the remote launch tests (legacy fallback and host authority).
pnpm tc (node/cli/web) is clean. Targeted verification: preflight-agent-detection (24), preflight-agent-detection-no-subprocess (2), preflight-wsl-agent-detection (23), qoder-desktop-execution-host (14), launched-agent-composer-readiness (61), remote-agent-session-launch (22), readiness-census (6) and readiness-census-synthetic (46), the four Bob transcript replays, and the locale-policy suites (35) all pass.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the two commits added since the prior pullfrog review (213cb6d06a, 3587040a5a). The branch was not rebased this time, so the delta is exact. pnpm tc (node/cli/web) is clean and the touched suites pass (ibm-bob-title-recognition 6, agent-title-evidence 125, readiness-census-synthetic 46).
- Bob pane titles are now vendor-qualified and recognized — the profile wrote
Bob/Bob ready/Bob - action required, which no classifier recognized, so the rest-signal table'ssynthetic-titleentry for Bob did not hold and the idle check fell back to waiting.SYNTHETIC_AGENT_TITLE_PROFILES.bobnow writes theIBM Bobvariants, and a boundary-safeIBM_BOB_AGENT_NAME_RE(ibm+ whitespace +bob) is wired into every title classifier that handles Hermes/Droid (agent-title-core.ts,agent-title-identity.ts,terminal-title-agent-type.ts,agent-title-status.ts, and the renderer'stitle-agent-identity.ts). The dedicated-pattern list moved beside the patterns inagent-name-token-match.tsand is now consumed byagent-title-evidence.ts. Barebob(bob@host,bob 4.0.0, the Neovim manager) stays unrecognized. - The fix is pinned by exact assertions — the new
ibm-bob-title-recognitiontest asserts the exact idle/permission labels, the idle / permission / agent-type round-trip, and five bare-bobnegatives; andsynthetic--bob.json's twelvesynthetic-readycensus verdicts move frompending:closedtoready-strong/ready@start, now identical to Devin's fixture. Both would fail if recognition regressed. - Docs — added
docs/reference/ibm-bob-integration.md(the verified Bob Shell 2.0.2 contract, identity model, compatibility and limits) and allow-listed it in.gitignorealongside the Jcode reference.
No prior Pullfrog threads remain open; all were resolved on earlier revisions.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
3587040 to
e0f131a
Compare
|
Super eager for this to get merged :) |
|
Hi maintainers 👋 Could one of you take a look at two PRs when you have a moment? #20397: IBM Bob as a first-class agent (managed status hooks, approval detection, session resume)
#20401:
Since these come from a fork, CI hasn't run on the current heads, so the first step would be approving the workflow runs. I'm happy to make any changes you want. Thanks! |
|
For documentation, cross-linking the related Discord thread I started: I shared my positive experience with this PR there in the hope of bringing it a little more visibility among the maintainers. |
|
I tested the Bob integration through Orca's native orchestration worker path and found a first-dispatch readiness issue at the current PR head, Current path and deadlockBob currently has In direct Bob Shell 2.x testing:
That makes pre-input Why the generic terminal signals do not solve itThe two Bob captures already committed to this PR provide useful protocol evidence:
Bob therefore cannot use the generic quiet-after-bracketed-paste signal: its quiet timer is never armed. It also cannot anchor its composer glyph on alternate-screen entry as Grok does. Why bare
|
e0f131a to
3863700
Compare
|
@alfred-rootson thanks, confirmed and merged. I reproduced the deadlock on Bob 2.0.5 in a real PTY: no hook fires before the first prompt ( The placeholder also appears only after Bob's last Your commit is cherry-picked as-is onto this branch (authorship kept). I also corrected the |
d95b472 to
9469e8f
Compare
9469e8f to
11969b1
Compare
|
@nwparker @brennanb2025 — could one of you approve the CI runs on two fork PRs? That's the only blocker right now; both are rebased on today's main and mergeable, and no workflow has ever been allowed to run on them (the September runs expired unapproved after 30 days).
#20397 is large (~130 files). If a smaller review unit would help, I'm happy to split it — detection + identity gate first (the part that's generic), then hooks + resume, then approval detection — just say which you'd prefer. Thanks! |
e0a7cc1 to
8c8bb8d
Compare
|
@trs-80, any update here? |
|
Looking forward to this too! What's left? Can we merge this in? |
Adds IBM Bob Shell 2.x as a first-class Orca agent: launch, yolo, and trust flags; identity-gated detection on every host; managed status hooks posted through the shared curl command; hook-task-id resume; approval-modal and composer recognition in every Bob locale; "IBM Bob" pane titles; and opt-out-by-default on desktop and mobile agent lists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19b2d01 to
ecf7a9c
Compare
|
@IgorTodorovskiIBM @Harshad01 thanks for the interest! The code side is done: I just rebased this onto today's main. Main had reorganized much of the agent detection and hook code, so this was a substantial merge. Typecheck and lint are clean, and the Bob test suites pass. What's left is on the maintainer side: CI has never run on this fork PR because the workflow runs need approval. @nwparker @brennanb2025 could one of you approve the workflow runs here and on #20401 when you get a chance? Both are rebased on current main and mergeable. |
|
@trs-80 have you had luck getting the new bots feature to work with Bob? |

Supersedes #14895. One branch instead of a stack: #14895's work rebased onto current
main(889 commits of drift), plus a managed-hook integration that gives Bob real agent status, plus session resume.Every behavioural claim below was verified against the real
bobshellbinary (2.0.2, re-checked on 2.0.5) — captured hook payloads and CLI round-trips, not reading the bundle and guessing. Raw evidence is quoted in the commit messages.What Bob gets
waiting+ notification, from the on-screen modalagent.launch/ draft paste)bob chat --trust --resume <task-id>The five things that were wrong, and the evidence
1.
ask_followup_questiondoes not exist. An earlier draft mapped Bob'swaitingstate to that tool. Bob 2.0.2 has no ask-the-user tool at all — asked directly, it enumerated its 17-tool registry without it. The 12 occurrences indist/bob.jsare prose inside shipped skill markdown inherited from an IDE product, with no registration site. Bob asks in plain text and firesStop. The dead predicate is gone and Bob has no hook-sourcedwaiting; see the limitation below.2.
--trustis load-bearing. In a freshHOME,bob chatblocks on a "Do you trust this folder?" select and a prompt typed at that moment is swallowed — the trailing CR is eaten by the select list. Bob has no interactive initial-prompt flag, so Orca injects after startup, which means losing the flag loses the injected prompt on every first launch in a workspace.3.
session_idis the resume task id. It is Bob'srootTaskId. Round-tripped: the id fromSessionStartfed to--resumerestored the conversation with turn and tool counts intact, and the resumed run reported the same id withsourceflippingstartup→resume. Gated behind its own runtime capability like kimi's, because bob joinsRESUMABLE_TUI_AGENTSafteragent-session.host-authority.v1and an older host answers the unknown enum member withinvalid_argument— which the launch fallback does not retry on.4. Orca wrote
~/.bob/for the wrongbob. Managed-hook install writes into a vendor's own config dir, but its presence gate was a bare PATH lookup. Agent detection already runs an identity probe for exactly this collision (bobis also MordechaiHadad's Neovim version manager); the install path never consulted it. A user who opted Bob in while holding the other tool got~/.bob/settings/settings.jsoncreated locally, over SSH, and into WSL. Fixed for the whole bug class, not just Bob — only agents declaringdetectIdentityExclusionare probed, and it fails open like detection does.5. Windows needed no PowerShell at all. Bob runs hooks through
child_process.exec(cmd.exe) and ignores empty stdout, so the hook registers the script path itself — no interpreter hop, no neutral-JSON tail. That is the #18875 doctrine indocs/reference/windows-edr-posture.md; an encoded launcher would have added a first-class Defender alert title per hook event.Contract details that are load-bearing
~/.bob/settings/settings.jsonon every platform — Bob builds it fromos.homedir()with noAPPDATAbranch and no env override.readHooksJson/writeHooksJsonpair covers it; no per-agent parser.BOB_HOOK_EVENTSis exactlySessionStart,UserPromptSubmit,PreToolUse,PostToolUse,Stop. Both the event map and each entry are.strict()zod: one unknown key and Bob silently discards every global hook, so the written shape is a contract. An omitted matcher means match-all. A test asserts the exact key set for that reason.bob runand the interactivebob chatTUI (verified through a real PTY).SessionStartis lazy: Bob fires it fromapplyInputon a session's first turn input, just beforeUserPromptSubmit, never at boot, on startup and resume alike. It lands a session-boundary row and drops the previous session's caches. Onlystartup/resumecount; 2.0.5 also sendssource: "compact"mid-turn, which is ignored.tui-idlewait had nothing to settle on for a fresh pane. Bob now uses thecomposer-markerlane (as ZCode/OpenCode do) onBuild Anything, @ for context, which every capture paints only after Bob's lastInitializing…frame. Contributed by @alfred-rootson (fix(bob): wait for the composer before first worker input trs-80/orca#1).Known limitations
PreToolUsefires, then nothing until the user answers. This PR reads the modal off the PTY (bob-approval-prompt.ts, replayed against two captured transcripts) and emitswaiting.Stop. Bob firesStoponly when a turn completes (!cancelled && …); after Esc or an API error the pane readsworkinguntil the status goes stale. Closing that needs an on-screen idle signal, which belongs with the output-status profile work (feat(agent-status): profile-driven output status scrape, with IBM Bob #15936).Verification
pnpm tcclean across node, cli, and web. The CLI project needed Bob's files added to its explicit include list, and the web project's capability ratchet forced Bob's resume gate to be a deliberate decision.origin/mainworktree and fail identically there — developer envANTHROPIC_API_KEY, a real Claude CLI, and network-dependent cross-version-wire specs. Two more are load-flaky and pass in isolation. Nothing fails because of this branch.pnpm run check:code-quality:changed: 0 new findings across 77 changed files.max-linesdisable.--help: kept, not excluded.🤖 Generated with Claude Code