Repository navigation
feat(composer): click a draft image attachment to view it full-size - #4690
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Image chips in the prompt editor were 40px thumbnails with no way to inspect them before sending. The chip is now an Expand button that opens the same lightbox used for sent and queued images. Extract the dialog into ImageLightbox so the badge and composer share one viewer. Extend attachment-upload-loading-state with the click-to-expand step.
- Isolate the standalone approval server's runtime DB so a host machine's persisted managed policy cannot short-circuit writes with 403. - Target the sidebar control by its current label (renamed in #4491).
The client posts multipart to /workspace/<id>/inbox with the path as a form field, so the previous /inbox? + URL substring match never fired.
cdc718c to
97a00a4
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (97a00a4686fdac6ba2b3bf8d67d0436f662af81e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — sending an image in existing chat immediately moves it into the thread while upload is pending — ✅ passedSHA 97a00a4 · engine v1 ✅ 0/3 screenshots passed · 0 expectations passed · 0 failed · 0 pending [world] mock(mcp) · den(daytona) · desktop(as admin) · workspace(/tmp/openwork-attachment-upload-1788983203842) · [seed:raw] evalIn() ×3 · session("New task") ⚪ UNVALIDATED — 1. sending an image in existing chat immediately moves it into the thread while upload is pending artifact 1
⚪ UNVALIDATED — 2. sending an image in existing chat immediately moves it into the thread while upload is pending artifact 2
⚪ UNVALIDATED — 3. sending an image in existing chat immediately moves it into the thread while upload is pending artifact 3
Test run created 2026-09-09T19:42:52.678Z · Source: |
Test evidence — sending an image in new task immediately moves it into the thread while upload is pending — ✅ passedSHA 97a00a4 · engine v1 ✅ 0/3 screenshots passed · 0 expectations passed · 0 failed · 0 pending
[world] mock(mcp) · den(daytona) · desktop(as admin) · workspace(/tmp/openwork-attachment-upload-1788983473408) · [seed:raw] evalIn() ×3 · session("New task") ⚪ UNVALIDATED — 1. sending an image in new task immediately moves it into the thread while upload is pending artifact 1
⚪ UNVALIDATED — 2. sending an image in new task immediately moves it into the thread while upload is pending artifact 2
⚪ UNVALIDATED — 3. sending an image in new task immediately moves it into the thread while upload is pending artifact 3
Test run created 2026-09-09T19:47:12.877Z · Source: |






Summary
Image attachments added to the prompt only ever rendered as 40px thumbnails, with no way to inspect them before sending (sent and queued images already had a lightbox).
ImageLightboxso the badge and the composer use one viewer (the lightbox mounts as a sibling of the composer root so Escape cannot arm stop-agent).Journey spec
evals/specs/attachment-upload-loading-state.e2e.test.ts(extended, both entry points):src→ Escape → lightbox gone, chip and draft intact.dev(confirmed with a cleanorigin/devcontrol that failed identically):~/.config/openwork/runtime.sqlite, so a persisted managed policy turned every write into an instant403 policy_unavailable→ runtime DB is now isolated per run;/inbox?…chat-attachmentsin the URL, but the client posts to/workspace/<id>/inboxwithpathas a form field → gate now inspects the actual request;Verification — Passed
Lane: Daytona (
placement: daytona (--daytona),OPENWORK_EVAL_REF=feat/attachment-image-lightbox, checkout resolved97a00a4686fd= PR head).OPENWORK_EVAL_REF=feat/attachment-image-lightbox infisical run --silent -- pnpm evals:e2e attachment-upload-loading-state --daytona— exit 0; 2 passed, 0 failed, 0 skipped. Evidence for both journeys at this head is in the comments below (sticky + companion).pnpm --filter @openwork/app typecheck— exit 0.pnpm evals:typecheckreports the same 363 pre-existing errors with and without this branch; none in touched files.apps/app/tests/composer-focus-continuity.test.tsxfails identically on a cleanorigin/devworktree ("Platform context is missing", since feat(desktop): use native right-click menus #4650); not caused here.Known pre-existing flake (not addressed here)
The new task variant of this spec fails roughly every other run after
user.reload()withSession snapshot owner changed before the local read completed.and an empty thread. Bisected on Daytona at this head: it fails and passes both with and without the new lightbox step (and onorigin/dev), so it is independent of this change. The snapshot owner includes the draft scope, which flips when the cloud session hydrates after reload, and the loopback snapshot query hasretry: falsewith an owner-less key — worth its own PR.Note:
evals/specs/streamed-markdown-answer.e2e.test.ts:32still targets the old "New task" label; left untouched here.