compaction.ts · part 1
Full reference18 text occurrences from packages/opencode/src/session/compaction.ts, part 1. Every entry preserves the shipped literal and its saved verdict or selection reason.
File contents and all parts · All files
Shipped text
${value.slice(0, TOOL OUTPUT MAX CHARS)} n truncated
Source: packages/opencode/src/session/compaction.ts, characters 1786–1841, SHA-256 82a1a73bcbfaca29.
Jev judged not model-facing (confidence 0.09; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${value.slice(0, TOOL_OUTPUT_MAX_CHARS)}\n[truncated]
${value.slice(0, TOOL_OUTPUT_MAX_CHARS)}\n[truncated]
Attached ${part.mime}: ${part.filename ?? "file"}
Source: packages/opencode/src/session/compaction.ts, characters 2210–2263, SHA-256 3f5549b56cca7eee.
Jev judged not model-facing (confidence 0.38; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Attached ${part.mime}: ${part.filename ?? "file"}]
[Attached ${part.mime}: ${part.filename ?? "file"}]
User : ${text}
Source: packages/opencode/src/session/compaction.ts, characters 2301–2318, SHA-256 d0350d8694c40a80.
Jev judged not model-facing (confidence 0.6; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [User]: ${text}
[User]: ${text}
Assistant : ${part.text}
Source: packages/opencode/src/session/compaction.ts, characters 2452–2479, SHA-256 b5bcc06a67aa9482.
Jev judged not model-facing (confidence 0.65; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Assistant]: ${part.text}
[Assistant]: ${part.text}
Assistant reasoning : ${part.text}
Source: packages/opencode/src/session/compaction.ts, characters 2543–2580, SHA-256 a6a0540bd01b9a63.
Jev judged not model-facing (confidence 0.56; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Assistant reasoning]: ${part.text}
[Assistant reasoning]: ${part.text}
Assistant tool call : ${part.tool}(${JSON.stringify(part.state.input)})
Source: packages/opencode/src/session/compaction.ts, characters 2648–2722, SHA-256 2afc66b2c4a5d09c.
Jev judged not model-facing (confidence 0.5; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Assistant tool call]: ${part.tool}(${JSON.stringify(part.state.input)})
[Assistant tool call]: ${part.tool}(${JSON.stringify(part.state.input)})
Attached ${item.mime}: ${item.filename ?? "file"}
Source: packages/opencode/src/session/compaction.ts, characters 2854–2907, SHA-256 58ecc912fed3d8a6.
Jev judged not model-facing (confidence 0.4; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Attached ${item.mime}: ${item.filename ?? "file"}]
[Attached ${item.mime}: ${item.filename ?? "file"}]
Old tool result content cleared
Source: packages/opencode/src/session/compaction.ts, characters 2980–3015, SHA-256 4d3fd4372117d90f.
Jev judged not model-facing (confidence 0.24; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Old tool result content cleared]
[Old tool result content cleared]
Tool result : ${output}
Source: packages/opencode/src/session/compaction.ts, characters 3107–3133, SHA-256 f29654cb55f3d600.
Jev judged not model-facing (confidence 0.5; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Tool result]: ${output}
[Tool result]: ${output}
Tool error : ${part.state.error}
Source: packages/opencode/src/session/compaction.ts, characters 3198–3233, SHA-256 d65984af6d727167.
Jev judged not model-facing (confidence 0.26; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Tool error]: ${part.state.error}
[Tool error]: ${part.state.error}
tail fallback
Source: packages/opencode/src/session/compaction.ts, characters 9061–9076, SHA-256 71c12f2d1d3e5415.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: tail fallback
tail fallback
Compaction parent must be a user message: ${input.parentID}
Source: packages/opencode/src/session/compaction.ts, characters 11632–11693, SHA-256 d135976cba54129e.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Compaction parent must be a user message: ${input.parentID}
Compaction parent must be a user message: ${input.parentID}
The following is the conversation history:
Source: packages/opencode/src/session/compaction.ts, characters 15524–15568, SHA-256 867e8ad5809afb83.
Jev judged not model-facing (confidence 0.73; role context). This is a classifier judgment, not proof of delivery.
Readable text: The following is the conversation history:
The following is the conversation history:
Conversation history too large to compact - exceeds model context limit
Source: packages/opencode/src/session/compaction.ts, characters 15903–15976, SHA-256 2081aeb4d7462ad9.
Jev judged not model-facing (confidence 0.07; role human). This is a classifier judgment, not proof of delivery.
Readable text: Conversation history too large to compact - exceeds model context limit
Conversation history too large to compact - exceeds model context limit
Session too large to compact - context exceeds model limit even after stripping
Source: packages/opencode/src/session/compaction.ts, characters 15991–16078, SHA-256 d12ec64a29d6e895.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: Session too large to compact - context exceeds model limit even after stripping media
Session too large to compact - context exceeds model limit even after stripping media
Attached ${part.mime}: ${part.filename ?? "file"} · character 17233
Source: packages/opencode/src/session/compaction.ts, characters 17233–17286, SHA-256 3f5549b56cca7eee.
Jev judged not model-facing (confidence 0.36; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Attached ${part.mime}: ${part.filename ?? "file"}]
[Attached ${part.mime}: ${part.filename ?? "file"}]
The previous request exceeded the provider's size limit due to large media attac
Source: packages/opencode/src/session/compaction.ts, characters 18726–19059, SHA-256 f6c498cfeff3cba1.
Jev judged not model-facing (confidence 0.8; role human). This is a classifier judgment, not proof of delivery.
Readable text: The previous request exceeded the provider's size limit due to large media attachments. The conversation was compacted and media files were removed from context. If the user was asking about attached images or files, explain that the attach…
The previous request exceeded the provider's size limit due to large media attachments. The conversation was compacted and media files were removed from context. If the user was asking about attached images or files, explain that the attachments were too large to process and suggest they try again with smaller or fewer files.
Continue if you have next steps, or stop and ask for clarification if you are un
Source: packages/opencode/src/session/compaction.ts, characters 19098–19200, SHA-256 92d6d0ac267beaee.
Jev judged not model-facing (confidence 0.72; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed.
Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed.