Skip to content

Tell the Planner about hosted images - #442

Merged
lavaman131 merged 2 commits into
mainfrom
fix/planner-hosted-images
Oct 9, 2026
Merged

lavaman131 merged 2 commits into
mainfrom
fix/planner-hosted-images

Conversation

@lavaman131

Copy link
Copy Markdown
Collaborator

The Planner's system prompt still said "Images are referenced by absolute https: URL." Since #441, an image can also use the /images/<sha256>.<ext> path Chopin returns when it is uploaded to the document, so the Planner should accept those. It also needs to be told that only Chopin can produce such a path.

What changes

  • apps/server/src/agent/planner.ts: images use an absolute https: URL or a /images/<sha256>.<ext> path that Chopin returned when the image was uploaded to this document. The Planner must never invent or guess such a path.
  • apps/server/src/agent/planner.test.ts: a new test, "allows only Chopin-returned hosted image paths".
  • packages/dialect/src/nodes/content.ts: the ImageNode comment describes both forms.

Verification

  • bun test apps/server/src/agent: 168 passed, 0 failed.
  • bun --filter '@chopin/server' types: exit 0.
  • bunx dprint check and bunx oxlint on the changed files: no findings.

Assistant-model: Claude Opus 5.5 (fast)
Assistant-workflow: inline (implemented by a worker subagent on anthropic-api/claude-opus-5-5-fast)
Assistant-duration: 6m converged, estimated 10m
Assistant-verification: bun test passed: apps/server/src/agent (168 pass, 0 fail)
Assistant-verification: types passed: bun --filter '@chopin/server' types
Assistant-verification: dprint and oxlint passed: no findings on changed files
User-preference: Use fast subagents for everything

@lavaman131
lavaman131 merged commit accc1ee into main Oct 9, 2026
@lavaman131
lavaman131 deleted the fix/planner-hosted-images branch October 9, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant