Skip to content

Commit cf0efec

Browse files
docs(pi): document image-strip omission in PARITY
The processed-image strip was already intentionally omitted on Pi (the cleanup-stage notes in context-handler.ts explain the different image part shape), but PARITY.md never recorded it, so parity audits kept re-flagging it as an accidental gap. Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>
1 parent 49927bd commit cf0efec

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/pi-plugin/PARITY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,19 @@ channel) — it reflects `task_schedule_state` read-only.
557557

558558
---
559559

560+
## 19b. Processed-image stripping is OpenCode-only
561+
562+
OpenCode replaces large base64 image payloads in user `file` parts with
563+
sentinels once the assistant has processed them (`stripProcessedImages`,
564+
frozen-id replay). Pi's image part shape differs (`kind: "image"` with a URL)
565+
and large base64 images are rare in Pi sessions — the equivalent strip would
566+
only fire for the pasted-screenshot case, which Pi does not currently
567+
optimize. A Pi-specific image-content stripper can be added later if that
568+
case becomes common. Intentional divergence (see the cleanup-stage notes in
569+
`context-handler.ts`).
570+
571+
---
572+
560573
## 19a. `/ctx-aug` skips empty sidekick augmentation blocks
561574

562575
When sidekick returns the empty-result sentinel (for example, "No relevant

0 commit comments

Comments
 (0)