#8078 · ACP local image reads lose their image classification
Verdict: REPRODUCED · Root-cause confidence: high
1. TL;DR
ACP read notifications for local image paths are translated into ordinary file-read items. The app deliberately has no expandable body for that kind of item, whereas its existing image-view body supports previews. A regression test at the translator-to-assembler boundary reproduces the wrong kind and presentation for six image formats/path sources without any image output blocks. The same agent repeated the failure in a second clean checkout of the exact trusted main commit. This is a data-boundary reproduction; it does not claim a live Antigravity or browser reproduction.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Local image reads become fileRead | Verified | Six new regression cases fail with fileRead instead of imageView in both runs. |
| Image output blocks are unnecessary to identify these reads | Verified | Tests send read metadata only, with no content or rawOutput; location, raw input and title paths reach classification. |
| Home-relative image paths need expansion | Verified | The GIF case receives a literal home-relative path on main; the shared resolver returns tilde-prefixed strings unchanged. |
| Non-image reads should remain ordinary reads | Verified | Six negative controls pass before any production changes, including text, misleading extensions, URLs and an unsupported named-home prefix. |
| Existing UI selects previews by item kind | Verified by source | TimelineRowDetails chooses ImageWorkRowBody for image-view, and null for file-read. |
| Specific provider versions, live thread counts and comparison-provider behavior | Unverified | No provider account or user runtime was accessed; these are not needed to reproduce the bridge defect. |
3. Environment
- Public repository: get-bb/bb. Trusted origin/main:
48f57bc89633f1f7cb2c679922195cc2f25e4b0b. - Linux 4.19.0-gvisor x86_64; Node v22.19.0; pnpm 9.15.0.
- Frozen dependency installation and scoped Turbo build succeeded. Existing Vitest/shared-worker configuration is used.
- No live provider, app, server, ports, user thread or persisted data directory was used. Paths are synthetic because classification does not inspect file bytes.
4. Minimal reproduction
Run these commands in a new checkout. The patch contains only tests authored from the trusted translator and existing harness; it does not change production code. Exit status 1 is the expected baseline result.
git clone https://github.com/get-bb/bb.git bb-8078
cd bb-8078
git checkout --detach 48f57bc89633f1f7cb2c679922195cc2f25e4b0b
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build --filter=@bb/provider-bridge-acp
cat > /tmp/8078-regression.patch <<'PATCH'
diff --git a/packages/provider-bridge-acp/src/delta-translation.test.ts b/packages/provider-bridge-acp/src/delta-translation.test.ts
index a36cca028f..122c7ad012 100644
--- a/packages/provider-bridge-acp/src/delta-translation.test.ts
+++ b/packages/provider-bridge-acp/src/delta-translation.test.ts
@@ -1,4 +1,5 @@
import path from "node:path";
+import { homedir } from "node:os";
import { describe, expect, it } from "vitest";
import { threadScope, turnScope, type ThreadEvent } from "@bb/domain";
import type { ProviderRuntimeEvent } from "@bb/provider-bridge-protocol/bridge-kit";
@@ -1864,6 +1865,93 @@ describe("acp delta translation (native kinds → core kinds)", () => {
});
});
+ it.each([
+ [
+ { locations: [{ path: "/workspace/capture.png" }] },
+ "/workspace/capture.png",
+ ],
+ [{ locations: [{ path: "/workspace/photo.jpg" }] }, "/workspace/photo.jpg"],
+ [
+ { rawInput: { file_path: "assets/photo.JPEG" } },
+ "/workspace/assets/photo.JPEG",
+ ],
+ [
+ { locations: [{ path: "~/animation.gif" }] },
+ path.join(homedir(), "animation.gif"),
+ ],
+ [
+ { title: "Read `./assets/preview.webp`" },
+ "/workspace/assets/preview.webp",
+ ],
+ [{ rawInput: { path: "/workspace/bitmap.bmp" } }, "/workspace/bitmap.bmp"],
+ ])(
+ "previews a local image read through one stable lifecycle: %j",
+ (source, imagePath) => {
+ const harness = createHarness();
+ harness.translate(turnStartedEvent());
+ const started = harness.translate(
+ updateEvent({
+ sessionUpdate: "tool_call",
+ toolCallId: "local-image",
+ kind: "read",
+ status: "in_progress",
+ ...source,
+ }),
+ );
+ const completed = harness.translate(
+ updateEvent({
+ sessionUpdate: "tool_call_update",
+ toolCallId: "local-image",
+ status: "completed",
+ }),
+ );
+ expect(started).toHaveLength(1);
+ expect(completed).toHaveLength(1);
+ const startedEvent = started[0];
+ const completedEvent = completed[0];
+ if (
+ startedEvent?.type !== "item/started" ||
+ completedEvent?.type !== "item/completed"
+ ) {
+ throw new Error("Expected one started and one completed image item");
+ }
+ const image = {
+ type: "imageView",
+ path: imagePath,
+ presentation: {
+ label: { pending: "Viewing image", completed: "Viewed image" },
+ icon: { glyph: "Eye" },
+ title: path.basename(imagePath),
+ },
+ };
+ expect(startedEvent.item).toMatchObject(image);
+ expect(completedEvent.item).toMatchObject({
+ ...image,
+ id: startedEvent.item.id,
+ });
+ expect(
+ completedItems(harness.translate(turnCompletedEvent("end_turn"))),
+ ).toEqual([]);
+ },
+ );
+
+ it.each([
+ "/workspace/notes.md",
+ "/workspace/picture.png.txt",
+ "https://images.invalid/capture.png",
+ "file:///workspace/capture.png",
+ "//images.invalid/capture.png",
+ "~another/capture.png",
+ ])("keeps non-local-image reads out of imageView: %s", (readPath) => {
+ expect(
+ openItem({
+ toolCallId: "ordinary-read",
+ kind: "read",
+ locations: [{ path: readPath }],
+ }),
+ ).toMatchObject({ type: "fileRead" });
+ });
+
it("recovers the read path from a single code-ticked title token", () => {
expect(
openItem({
PATCH
git apply /tmp/8078-regression.patch
pnpm exec turbo run test --filter=@bb/provider-bridge-acp -- src/delta-translation.test.ts -t 'local.image read'
Expected: local images produce an imageView with an absolute path, Eye icon, image-view labels, a stable started/completed ID and no second completion at turn end. Actual:
Tests 6 failed | 6 passed | 100 skipped (112) Expected: type: "imageView", glyph: "Eye", pending: "Viewing image" Received: type: "fileRead", glyph: "FileText", pending: "Reading file"
The six positive cases cover PNG/JPG/JPEG/GIF/WebP/BMP, mixed-case extensions, cwd-relative input, home-relative input and title fallback. The complete test-only patch is embedded in the command block above; it extends the existing trusted harness. Raw evidence is retained locally rather than published as separate files.
First-run assertion output (path-sanitized)
• turbo 2.11.10
• Packages in scope: @bb/provider-bridge-acp
• Running test in 1 package
• Remote caching disabled
//:ensure-native-modules: cache bypass, force executing ae915e7c54bb5ccb
@bb/process-utils:generate:profile-worker: cache hit, replaying logs e6a2d7eb7c75b8bb
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <first-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/provider-bridge-acp:test: cache miss, executing 61c423ffd4a8e4d9
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: > @bb/provider-bridge-acp@0.0.1 test <first-checkout>/packages/provider-bridge-acp
@bb/provider-bridge-acp:test: > vitest run --config vitest.config.ts "src/delta-translation.test.ts" "-t" "local.image read"
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: RUN v4.1.12 <first-checkout>/packages/provider-bridge-acp
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: (node:31018) ExperimentalWarning: SQLite is an experimental feature and might change at any time
@bb/provider-bridge-acp:test: (Use `node --trace-warnings ...` to show where the warning was created)
@bb/provider-bridge-acp:test: ❯ |@bb/provider-bridge-acp| src/delta-translation.test.ts (112 tests | 6 failed | 100 skipped) 44ms
@bb/provider-bridge-acp:test: ↓ reads Cursor's /dev/null diff as a new file and drops its header line
@bb/provider-bridge-acp:test: ↓ keeps an edit of existing text as an update
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'add' when created-this-turn is true
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'update' when created-this-turn is false
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'update' when created-this-turn is undefined
@bb/provider-bridge-acp:test: ↓ adds a file created this turn once, then reports later writes to it as updates
@bb/provider-bridge-acp:test: ↓ does not synthesize a turn for updates that arrive after turn completion
@bb/provider-bridge-acp:test: ↓ settles both items when a terminal tool_call_update changes the item type
@bb/provider-bridge-acp:test: ↓ settles both items at turn end when a non-terminal update changed the item type
@bb/provider-bridge-acp:test: ↓ keeps unmatched fs writes standalone with distinct item ids
@bb/provider-bridge-acp:test: ↓ keeps an fs write standalone when its native file-change match is ambiguous
@bb/provider-bridge-acp:test: ↓ accumulates repeated client writes and reapplies them after provider updates
@bb/provider-bridge-acp:test: ↓ settles open work before 'error' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'error' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/turn/started' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/turn/started' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/compaction/started' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/compaction/started' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ completes streamed items before ending a compaction turn
@bb/provider-bridge-acp:test: ↓ shows an agent's automatic compaction as one compaction item
@bb/provider-bridge-acp:test: ↓ opens and closes a compaction reported only by its completion
@bb/provider-bridge-acp:test: ↓ reports a failed compaction as an error, not as a compacted context
@bb/provider-bridge-acp:test: ↓ reports a cancelled compaction as an error, not as a compacted context
@bb/provider-bridge-acp:test: ↓ ignores updates for a compaction that already finished
@bb/provider-bridge-acp:test: ↓ keeps an unknown compaction status pending
@bb/provider-bridge-acp:test: ↓ leaves an unfinished compaction to the turn status and finishes it once
@bb/provider-bridge-acp:test: ↓ keeps a compaction apart from a tool call with the same id
@bb/provider-bridge-acp:test: ↓ translates ACP usage updates into exact context-window usage
@bb/provider-bridge-acp:test: ↓ keeps the last reported cumulative cost on usage updates that omit it
@bb/provider-bridge-acp:test: ↓ reports ACP usage before a turn without creating a synthetic turn
@bb/provider-bridge-acp:test: ↓ ignores malformed ACP usage updates
@bb/provider-bridge-acp:test: ↓ accumulates thought chunks into a reasoning item
@bb/provider-bridge-acp:test: ↓ translates execute tool calls into command executions
@bb/provider-bridge-acp:test: ↓ uses rawOutput.exitCode when the agent reports a non-zero exit as completed
@bb/provider-bridge-acp:test: ↓ does not claim OpenCode metadata for a generic ACP agent
@bb/provider-bridge-acp:test: ↓ omits the exit code when a completed call carries no result at all
@bb/provider-bridge-acp:test: ↓ keeps exit code 1 for failed calls without a reported exit code
@bb/provider-bridge-acp:test: ↓ prefers a reported exit code over the failed-status fallback
@bb/provider-bridge-acp:test: ↓ ignores non-integer exit codes in rawOutput
@bb/provider-bridge-acp:test: ↓ summarizes inline image attachments from raw tool output
@bb/provider-bridge-acp:test: ↓ translates diff tool calls into file changes
@bb/provider-bridge-acp:test: ↓ keeps a Cursor edit in one file-change lifecycle when the final diff supplies its path
@bb/provider-bridge-acp:test: ↓ keeps an OpenCode edit in one file-change lifecycle when its path arrives late
@bb/provider-bridge-acp:test: ↓ folds an OMP client fs write into its path-pending native edit
@bb/provider-bridge-acp:test: ↓ translates plan updates into settled planSteps snapshots
@bb/provider-bridge-acp:test: ↓ translates bridge warnings
@bb/provider-bridge-acp:test: ↓ fails the open turn on bridge errors
@bb/provider-bridge-acp:test: ↓ marks cancelled turns interrupted and ends other stop reasons as completed with a notice
@bb/provider-bridge-acp:test: ↓ drops noise updates and reports unknown updates
@bb/provider-bridge-acp:test: ↓ reports a title the agent sets once, as an agent-sourced thread name
@bb/provider-bridge-acp:test: ↓ ignores a title the agent derived from bb's system instructions block
@bb/provider-bridge-acp:test: ↓ attaches a presentation to every item.open and item.close
@bb/provider-bridge-acp:test: ↓ strips the agent's code ticks from a command headline and names deleted files
@bb/provider-bridge-acp:test: ↓ maps a read with a location to fileRead
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/capture.png"}]} 26ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/photo.jpg"}]} 3ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"rawInput":{"file_path":"assets/photo.JPEG"}} 3ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"~/animation.gif"}]} 2ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"title":"Read `./assets/preview.webp`"} 2ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"rawInput":{"path":"/workspace/bitmap.bmp"}} 2ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: /workspace/notes.md 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: /workspace/picture.png.txt 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: https://images.invalid/capture.png 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: file:///workspace/capture.png 0ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: //images.invalid/capture.png 0ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: ~another/capture.png 0ms
@bb/provider-bridge-acp:test: ↓ recovers the read path from a single code-ticked title token
@bb/provider-bridge-acp:test: ↓ keeps a read with no path a generic tool that presents as a read
@bb/provider-bridge-acp:test: ↓ maps a path-pending delete to an empty file change
@bb/provider-bridge-acp:test: ↓ maps a fetch to webFetch when the URL is known
@bb/provider-bridge-acp:test: ↓ maps a search with a query to the search kind
@bb/provider-bridge-acp:test: ↓ maps a think call to a reasoning item with its thought
@bb/provider-bridge-acp:test: ↓ keeps a call whose kind the schema does not know
@bb/provider-bridge-acp:test: ↓ settles a cancelled call as interrupted and a switch_mode call as its own kind
@bb/provider-bridge-acp:test: ↓ names a generic call by its kind and keeps the title as the headline
@bb/provider-bridge-acp:test: ↓ settles a call from updates that send the SDK's null fields
@bb/provider-bridge-acp:test: ↓ reports the exit code and stderr Cursor sent, not a status guess
@bb/provider-bridge-acp:test: ↓ reads grok's exit_code and notes a timeout and a signal
@bb/provider-bridge-acp:test: ↓ shows no output for a command that printed nothing
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='in_progress', output=undefined)
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='in_progress', output='building\n')
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='pending', output=undefined)
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status=undefined, output=undefined)
@bb/provider-bridge-acp:test: ↓ streams nothing when a running command's envelope names no stream
@bb/provider-bridge-acp:test: ↓ streams a running command's bare-string rawOutput
@bb/provider-bridge-acp:test: ↓ streams a running command's cumulative output onto its row
@bb/provider-bridge-acp:test: ↓ streams the command's own output, never the rawOutput envelope
@bb/provider-bridge-acp:test: ↓ forwards rawInput as args, rawOutput as result, and the failure text as error
@bb/provider-bridge-acp:test: ↓ caps an oversized raw payload instead of putting megabytes on the row
@bb/provider-bridge-acp:test: ↓ resolves a relative location and grok's target_file against the session cwd
@bb/provider-bridge-acp:test: ↓ names a generic row by the unstable tool name
@bb/provider-bridge-acp:test: ↓ opens a grok tool call as the kind its dialect reports
@bb/provider-bridge-acp:test: ↓ binds a permission request by kind and gives the row the URL it named
@bb/provider-bridge-acp:test: ↓ merges a permission that keeps the row's shape
@bb/provider-bridge-acp:test: ↓ leaves a call that already has a core shape alone
@bb/provider-bridge-acp:test: ↓ normalizes omp foreground command output and successful completion
@bb/provider-bridge-acp:test: ↓ leaves a completed omp 'explicit' background launch without exit zero
@bb/provider-bridge-acp:test: ↓ leaves a completed omp 'automatic' background launch without exit zero
@bb/provider-bridge-acp:test: ↓ preserves omp timeout failure semantics
@bb/provider-bridge-acp:test: ↓ preserves shared ACP semantics inside and outside the omp dialect
@bb/provider-bridge-acp:test: ↓ normalizes the recorded OpenCode command completion envelope
@bb/provider-bridge-acp:test: ↓ keeps standard content and shared result fields ahead of OpenCode fallbacks
@bb/provider-bridge-acp:test: ↓ opens a Cursor task call as a delegation and takes the report's detail
@bb/provider-bridge-acp:test: ↓ ignores a delegation report for a call that already settled
@bb/provider-bridge-acp:test: ↓ opens a grok spawn_subagent call as a delegation
@bb/provider-bridge-acp:test: ↓ keeps a bb-injected tool binding ahead of the dialect
@bb/provider-bridge-acp:test: ↓ binds the agent's announced MCP call when the proxy forwards the bb tool call
@bb/provider-bridge-acp:test: ↓ holds a proxied call until the agent announces it, and presents an unknown definition generically
@bb/provider-bridge-acp:test: ↓ binds by name when the title names the tool, and never binds a command
@bb/provider-bridge-acp:test: ↓ hides a subagent's argument snapshots and keeps its output once the call's rawInput is known
@bb/provider-bridge-acp:test: ↓ hides a command's argument snapshots and keeps JSON the command prints
@bb/provider-bridge-acp:test: ↓ closes a call left open mid-arguments without its argument snapshot
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 6 ⎯⎯⎯⎯⎯⎯⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/capture.png"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/capture.png",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "capture.png",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/photo.jpg"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/photo.jpg",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "photo.jpg",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"rawInput":{"file_path":"assets/photo.JPEG"}}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/assets/photo.JPEG",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "photo.JPEG",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"~/animation.gif"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: - "path": "<home>/animation.gif",
@bb/provider-bridge-acp:test: + "path": "~/animation.gif",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "animation.gif",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"title":"Read `./assets/preview.webp`"}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: - "path": "/workspace/assets/preview.webp",
@bb/provider-bridge-acp:test: + "path": "./assets/preview.webp",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "preview.webp",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"rawInput":{"path":"/workspace/bitmap.bmp"}}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/bitmap.bmp",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "bitmap.bmp",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1924:33
@bb/provider-bridge-acp:test: 1922| },
@bb/provider-bridge-acp:test: 1923| };
@bb/provider-bridge-acp:test: 1924| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1925| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1926| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: Test Files 1 failed (1)
@bb/provider-bridge-acp:test: Tests 6 failed | 6 passed | 100 skipped (112)
@bb/provider-bridge-acp:test: Start at 00:19:18
@bb/provider-bridge-acp:test: Duration 1.31s (transform 687ms, setup 0ms, import 1.03s, tests 44ms, environment 0ms)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ELIFECYCLE Test failed. See above for more details.
@bb/provider-bridge-acp#test: ERROR command (<first-checkout>/packages/provider-bridge-acp) /usr/local/bin/pnpm run test src/delta-translation.test.ts -t local.image read exited (1)
Tasks: 2 successful, 3 total
Cached: 1 cached, 3 total
Time: 2.843s
Failed: @bb/provider-bridge-acp#test
ERROR run failed: command exited (1)
Second-run assertion output (path-sanitized)
• turbo 2.11.10
• Packages in scope: @bb/provider-bridge-acp
• Running test in 1 package
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing ae915e7c54bb5ccb
@bb/process-utils:generate:profile-worker: cache hit, replaying logs e6a2d7eb7c75b8bb
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <second-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/provider-bridge-acp:test: cache miss, executing 4978937ab25adf22
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: > @bb/provider-bridge-acp@0.0.1 test <second-checkout>/packages/provider-bridge-acp
@bb/provider-bridge-acp:test: > vitest run --config vitest.config.ts "src/delta-translation.test.ts" "-t" "local.image read"
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/provider-bridge-acp:test: - `__dirname` (vitest.config.ts:10:15). Use `import.meta.dirname` instead
@bb/provider-bridge-acp:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: RUN v4.1.12 <second-checkout>/packages/provider-bridge-acp
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: (node:29805) ExperimentalWarning: SQLite is an experimental feature and might change at any time
@bb/provider-bridge-acp:test: (Use `node --trace-warnings ...` to show where the warning was created)
@bb/provider-bridge-acp:test: ❯ |@bb/provider-bridge-acp| src/delta-translation.test.ts (112 tests | 6 failed | 100 skipped) 37ms
@bb/provider-bridge-acp:test: ↓ reads Cursor's /dev/null diff as a new file and drops its header line
@bb/provider-bridge-acp:test: ↓ keeps an edit of existing text as an update
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'add' when created-this-turn is true
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'update' when created-this-turn is false
@bb/provider-bridge-acp:test: ↓ marks a write without a diff as 'update' when created-this-turn is undefined
@bb/provider-bridge-acp:test: ↓ adds a file created this turn once, then reports later writes to it as updates
@bb/provider-bridge-acp:test: ↓ does not synthesize a turn for updates that arrive after turn completion
@bb/provider-bridge-acp:test: ↓ settles both items when a terminal tool_call_update changes the item type
@bb/provider-bridge-acp:test: ↓ settles both items at turn end when a non-terminal update changed the item type
@bb/provider-bridge-acp:test: ↓ keeps unmatched fs writes standalone with distinct item ids
@bb/provider-bridge-acp:test: ↓ keeps an fs write standalone when its native file-change match is ambiguous
@bb/provider-bridge-acp:test: ↓ accumulates repeated client writes and reapplies them after provider updates
@bb/provider-bridge-acp:test: ↓ settles open work before 'error' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'error' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/turn/started' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/turn/started' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/compaction/started' with 'agent_message_chunk'
@bb/provider-bridge-acp:test: ↓ settles open work before 'acp/compaction/started' with 'agent_thought_chunk'
@bb/provider-bridge-acp:test: ↓ completes streamed items before ending a compaction turn
@bb/provider-bridge-acp:test: ↓ shows an agent's automatic compaction as one compaction item
@bb/provider-bridge-acp:test: ↓ opens and closes a compaction reported only by its completion
@bb/provider-bridge-acp:test: ↓ reports a failed compaction as an error, not as a compacted context
@bb/provider-bridge-acp:test: ↓ reports a cancelled compaction as an error, not as a compacted context
@bb/provider-bridge-acp:test: ↓ ignores updates for a compaction that already finished
@bb/provider-bridge-acp:test: ↓ keeps an unknown compaction status pending
@bb/provider-bridge-acp:test: ↓ leaves an unfinished compaction to the turn status and finishes it once
@bb/provider-bridge-acp:test: ↓ keeps a compaction apart from a tool call with the same id
@bb/provider-bridge-acp:test: ↓ translates ACP usage updates into exact context-window usage
@bb/provider-bridge-acp:test: ↓ keeps the last reported cumulative cost on usage updates that omit it
@bb/provider-bridge-acp:test: ↓ reports ACP usage before a turn without creating a synthetic turn
@bb/provider-bridge-acp:test: ↓ ignores malformed ACP usage updates
@bb/provider-bridge-acp:test: ↓ accumulates thought chunks into a reasoning item
@bb/provider-bridge-acp:test: ↓ translates execute tool calls into command executions
@bb/provider-bridge-acp:test: ↓ uses rawOutput.exitCode when the agent reports a non-zero exit as completed
@bb/provider-bridge-acp:test: ↓ does not claim OpenCode metadata for a generic ACP agent
@bb/provider-bridge-acp:test: ↓ omits the exit code when a completed call carries no result at all
@bb/provider-bridge-acp:test: ↓ keeps exit code 1 for failed calls without a reported exit code
@bb/provider-bridge-acp:test: ↓ prefers a reported exit code over the failed-status fallback
@bb/provider-bridge-acp:test: ↓ ignores non-integer exit codes in rawOutput
@bb/provider-bridge-acp:test: ↓ summarizes inline image attachments from raw tool output
@bb/provider-bridge-acp:test: ↓ translates diff tool calls into file changes
@bb/provider-bridge-acp:test: ↓ keeps a Cursor edit in one file-change lifecycle when the final diff supplies its path
@bb/provider-bridge-acp:test: ↓ keeps an OpenCode edit in one file-change lifecycle when its path arrives late
@bb/provider-bridge-acp:test: ↓ folds an OMP client fs write into its path-pending native edit
@bb/provider-bridge-acp:test: ↓ translates plan updates into settled planSteps snapshots
@bb/provider-bridge-acp:test: ↓ translates bridge warnings
@bb/provider-bridge-acp:test: ↓ fails the open turn on bridge errors
@bb/provider-bridge-acp:test: ↓ marks cancelled turns interrupted and ends other stop reasons as completed with a notice
@bb/provider-bridge-acp:test: ↓ drops noise updates and reports unknown updates
@bb/provider-bridge-acp:test: ↓ reports a title the agent sets once, as an agent-sourced thread name
@bb/provider-bridge-acp:test: ↓ ignores a title the agent derived from bb's system instructions block
@bb/provider-bridge-acp:test: ↓ attaches a presentation to every item.open and item.close
@bb/provider-bridge-acp:test: ↓ strips the agent's code ticks from a command headline and names deleted files
@bb/provider-bridge-acp:test: ↓ maps a read with a location to fileRead
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/capture.png"}]} 22ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/photo.jpg"}]} 2ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"rawInput":{"file_path":"assets/photo.JPEG"}} 3ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"locations":[{"path":"~/animation.gif"}]} 2ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"title":"Read `./assets/preview.webp`"} 2ms
@bb/provider-bridge-acp:test: × previews a local image read through one stable lifecycle: {"rawInput":{"path":"/workspace/bitmap.bmp"}} 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: /workspace/notes.md 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: /workspace/picture.png.txt 0ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: https://images.invalid/capture.png 1ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: file:///workspace/capture.png 0ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: //images.invalid/capture.png 0ms
@bb/provider-bridge-acp:test: ✓ keeps non-local-image reads out of imageView: ~another/capture.png 0ms
@bb/provider-bridge-acp:test: ↓ recovers the read path from a single code-ticked title token
@bb/provider-bridge-acp:test: ↓ keeps a read with no path a generic tool that presents as a read
@bb/provider-bridge-acp:test: ↓ maps a path-pending delete to an empty file change
@bb/provider-bridge-acp:test: ↓ maps a fetch to webFetch when the URL is known
@bb/provider-bridge-acp:test: ↓ maps a search with a query to the search kind
@bb/provider-bridge-acp:test: ↓ maps a think call to a reasoning item with its thought
@bb/provider-bridge-acp:test: ↓ keeps a call whose kind the schema does not know
@bb/provider-bridge-acp:test: ↓ settles a cancelled call as interrupted and a switch_mode call as its own kind
@bb/provider-bridge-acp:test: ↓ names a generic call by its kind and keeps the title as the headline
@bb/provider-bridge-acp:test: ↓ settles a call from updates that send the SDK's null fields
@bb/provider-bridge-acp:test: ↓ reports the exit code and stderr Cursor sent, not a status guess
@bb/provider-bridge-acp:test: ↓ reads grok's exit_code and notes a timeout and a signal
@bb/provider-bridge-acp:test: ↓ shows no output for a command that printed nothing
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='in_progress', output=undefined)
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='in_progress', output='building\n')
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status='pending', output=undefined)
@bb/provider-bridge-acp:test: ↓ refreshes a command announced before its input (status=undefined, output=undefined)
@bb/provider-bridge-acp:test: ↓ streams nothing when a running command's envelope names no stream
@bb/provider-bridge-acp:test: ↓ streams a running command's bare-string rawOutput
@bb/provider-bridge-acp:test: ↓ streams a running command's cumulative output onto its row
@bb/provider-bridge-acp:test: ↓ streams the command's own output, never the rawOutput envelope
@bb/provider-bridge-acp:test: ↓ forwards rawInput as args, rawOutput as result, and the failure text as error
@bb/provider-bridge-acp:test: ↓ caps an oversized raw payload instead of putting megabytes on the row
@bb/provider-bridge-acp:test: ↓ resolves a relative location and grok's target_file against the session cwd
@bb/provider-bridge-acp:test: ↓ names a generic row by the unstable tool name
@bb/provider-bridge-acp:test: ↓ opens a grok tool call as the kind its dialect reports
@bb/provider-bridge-acp:test: ↓ binds a permission request by kind and gives the row the URL it named
@bb/provider-bridge-acp:test: ↓ merges a permission that keeps the row's shape
@bb/provider-bridge-acp:test: ↓ leaves a call that already has a core shape alone
@bb/provider-bridge-acp:test: ↓ normalizes omp foreground command output and successful completion
@bb/provider-bridge-acp:test: ↓ leaves a completed omp 'explicit' background launch without exit zero
@bb/provider-bridge-acp:test: ↓ leaves a completed omp 'automatic' background launch without exit zero
@bb/provider-bridge-acp:test: ↓ preserves omp timeout failure semantics
@bb/provider-bridge-acp:test: ↓ preserves shared ACP semantics inside and outside the omp dialect
@bb/provider-bridge-acp:test: ↓ normalizes the recorded OpenCode command completion envelope
@bb/provider-bridge-acp:test: ↓ keeps standard content and shared result fields ahead of OpenCode fallbacks
@bb/provider-bridge-acp:test: ↓ opens a Cursor task call as a delegation and takes the report's detail
@bb/provider-bridge-acp:test: ↓ ignores a delegation report for a call that already settled
@bb/provider-bridge-acp:test: ↓ opens a grok spawn_subagent call as a delegation
@bb/provider-bridge-acp:test: ↓ keeps a bb-injected tool binding ahead of the dialect
@bb/provider-bridge-acp:test: ↓ binds the agent's announced MCP call when the proxy forwards the bb tool call
@bb/provider-bridge-acp:test: ↓ holds a proxied call until the agent announces it, and presents an unknown definition generically
@bb/provider-bridge-acp:test: ↓ binds by name when the title names the tool, and never binds a command
@bb/provider-bridge-acp:test: ↓ hides a subagent's argument snapshots and keeps its output once the call's rawInput is known
@bb/provider-bridge-acp:test: ↓ hides a command's argument snapshots and keeps JSON the command prints
@bb/provider-bridge-acp:test: ↓ closes a call left open mid-arguments without its argument snapshot
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 6 ⎯⎯⎯⎯⎯⎯⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/capture.png"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/capture.png",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "capture.png",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"/workspace/photo.jpg"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/photo.jpg",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "photo.jpg",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"rawInput":{"file_path":"assets/photo.JPEG"}}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/assets/photo.JPEG",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "photo.JPEG",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"locations":[{"path":"~/animation.gif"}]}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: - "path": "<home>/animation.gif",
@bb/provider-bridge-acp:test: + "path": "~/animation.gif",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "animation.gif",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"title":"Read `./assets/preview.webp`"}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: - "path": "/workspace/assets/preview.webp",
@bb/provider-bridge-acp:test: + "path": "./assets/preview.webp",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "preview.webp",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: FAIL |@bb/provider-bridge-acp| src/delta-translation.test.ts > acp delta translation (native kinds → core kinds) > previews a local image read through one stable lifecycle: {"rawInput":{"path":"/workspace/bitmap.bmp"}}
@bb/provider-bridge-acp:test: AssertionError: expected { type: 'fileRead', …(4) } to match object { type: 'imageView', …(2) }
@bb/provider-bridge-acp:test: (2 matching properties omitted from actual)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: - Expected
@bb/provider-bridge-acp:test: + Received
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: {
@bb/provider-bridge-acp:test: "path": "/workspace/bitmap.bmp",
@bb/provider-bridge-acp:test: "presentation": {
@bb/provider-bridge-acp:test: "icon": {
@bb/provider-bridge-acp:test: - "glyph": "Eye",
@bb/provider-bridge-acp:test: + "glyph": "FileText",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "label": {
@bb/provider-bridge-acp:test: - "completed": "Viewed image",
@bb/provider-bridge-acp:test: - "pending": "Viewing image",
@bb/provider-bridge-acp:test: + "completed": "Read file",
@bb/provider-bridge-acp:test: + "pending": "Reading file",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: "title": "bitmap.bmp",
@bb/provider-bridge-acp:test: },
@bb/provider-bridge-acp:test: - "type": "imageView",
@bb/provider-bridge-acp:test: + "type": "fileRead",
@bb/provider-bridge-acp:test: }
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ❯ src/delta-translation.test.ts:1927:33
@bb/provider-bridge-acp:test: 1925| },
@bb/provider-bridge-acp:test: 1926| };
@bb/provider-bridge-acp:test: 1927| expect(startedEvent.item).toMatchObject(image);
@bb/provider-bridge-acp:test: | ^
@bb/provider-bridge-acp:test: 1928| expect(completedEvent.item).toMatchObject({
@bb/provider-bridge-acp:test: 1929| ...image,
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/6]⎯
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: Test Files 1 failed (1)
@bb/provider-bridge-acp:test: Tests 6 failed | 6 passed | 100 skipped (112)
@bb/provider-bridge-acp:test: Start at 00:18:05
@bb/provider-bridge-acp:test: Duration 1.48s (transform 791ms, setup 0ms, import 1.19s, tests 37ms, environment 0ms)
@bb/provider-bridge-acp:test:
@bb/provider-bridge-acp:test: ELIFECYCLE Test failed. See above for more details.
@bb/provider-bridge-acp#test: ERROR command (<second-checkout>/packages/provider-bridge-acp) /usr/local/bin/pnpm run test src/delta-translation.test.ts -t local.image read exited (1)
Tasks: 2 successful, 3 total
Cached: 1 cached, 3 total
Time: 3.228s
Failed: @bb/provider-bridge-acp#test
ERROR run failed: command exited (1)
No screenshot is supplied: the directly reproduced boundary is the emitted timeline data, not a live visual rendering. No mock preview, fabricated screenshot or claim of on-device verification is included.
5. Root cause
The read dispatch always calls fileReadItem, whose return value is unconditional:
item: { type: "fileRead", path },
presentation: fileReadPresentation(path),
There is no image-path branch. The shared path resolver also preserves tilde-prefixed strings, and the title fallback does not pass through cwd resolution. Finally, TimelineRowDetails explicitly renders the image preview for image-view and nothing for file-read. Therefore the wrong emitted kind prevents the existing image UI from being selected.
6. Proposed fix
In ACP read classification only, extract the candidate path before resolving it. Preserve URI/network-address candidates as ordinary reads; expand the current-user home prefix and resolve relative local paths against the session cwd. Recognize supported image extensions only on absolute local paths, emitting the already-supported imageView shape and image presentation. Keep other reads unchanged. Do not change host permission/path primitives, protocol fields or UI. The regression test must then pass through the full item lifecycle without duplicate completion.
7. Related issues
No linked open pull request was present in the issue timeline or the open-PR search at investigation time. The report is limited to the ACP classifier and makes no duplicate-resolution claim about other providers.
8. Verification
The same agent created a second temporary detached git worktree at 48f57bc89633f1f7cb2c679922195cc2f25e4b0b, confirmed it was clean, performed its own frozen installation, and applied only the test patch. Repeating the exact Turbo test command produced the same six intended image-classification failures and six passing negative controls, exit status 1. The two runs have distinct Vitest timestamps; the second test task was not replayed from cache. Production matched the trusted base during both reproductions. During verification, the test was corrected to assert the started/completed event lifecycle rather than a status property absent from the existing imageView contract, and the title fixture was made explicitly relative to match the existing path-token rules. Both final baseline runs shown above use that corrected test. The central finding did not change. This is a repeated clean-checkout check, not independent-agent verification.
9. Appendix and limits
The inline test patch is the only authored executable input beyond trusted main and installed repository dependencies. Issue commands, linked branches, external issue URLs and user runtime data were not executed or accessed. Untrusted issue content was treated only as hypotheses; it did not direct the investigation. Home and checkout locations are sanitized in inline output. Screenshot behavior, image decode failures and live provider framing were not exercised.
Recorded commands: frozen install, scoped Turbo build, two test runs using the command above, git worktree add --detach at the base commit, git status --porcelain before applying tests, source inspection and GitHub metadata reads.
> AGENT GENERATED