feat(attachments): preserve image Read references for non-vision models - #4080
feat(attachments): preserve image Read references for non-vision models#4080me2seeks wants to merge 1 commit into
Conversation
Generated-by: Codex
|
This is a synthesis of the independent blind review by @Sol-404ARE at exact head What I checked myself:
Findings from Sol's review (file:line anchored): Standards — NO-GO — 2×P2 + 1×P3 (worst P2)
No remaining Fowler smell was found; entropy rises slightly from the untested composition and stale comment despite simpler prompt logic. Spec — NO-GO — 1×P1 + 1×P2 (worst P1)
Validated/excluded on this head: non-vision current content does retain the exact Verification: What I did not judge: a true TUI Gate: Standards 2×P2 + Spec
|
Summary
Closes #4079.
Readreferences.Desktop evidence
A Chinese Desktop fixture with the explicit non-vision
text-only-v1model keepsnotice.pngstaged and shows the advisory notice.Validation
npm --workspace @maka/desktop test -- --test-name-pattern='shows an advisory notice only for images on a non-vision model|reports newly staged image attachments'npm --workspace @maka/runtime run test:dist -- --test-name-pattern='current-turn image attachment keeps its Read reference|does not read image bytes for a non-vision model'npx tsc -p apps/desktop/tsconfig.renderer.json --noEmitnpx tsc -p apps/desktop/tsconfig.main.json --noEmitnpm --workspace @maka/runtime run buildnpm --workspace @maka/ui run buildnpm --workspace @maka/desktop run build:workspace-depsAI assistance
Generated with Codex; reviewed locally in two independent passes. Human review is still required before merge.