Dashboard › opencode › Distillation
d5dbc007-a488-4355-bb2d-99adf58106e8["lore_tm_v1_vK-bX2syHoWZMmn9bXopxJuTpQC4jGAIC9oi7mU1ZZw","lore_tm_v1_AwTRqctqcOKkTYRmb3-sHvRMC5ChFPALCqSDDqgeGBM","lore_tm_v1_TzY3n--mssObCqPi102SaeqxztlNbbiW7N88V42nuY4","lore_tm_v1_m6msCla2KzvaYqr8qRaPbi4SOL53pscOTuF2XORM8Ro","lore_tm_v1_frtfoUm1omrjdA-11vTGJIXTINir3bUrfRJlexnEm4o","lore_tm_v1_YBl000mXu1bn6PxDgyqi_IhSJf2HjM14_LHvXI6e8Dc","lore_tm_v1_UwAekAGsLO0sKY701ZIH8Ckvd-0dZFE9Th2os_XPqTk","lore_tm_v1_bL0QQrjL8IaiXXsR0pEDB02u0_HSN47bYULTOU2fg0A","lore_tm_v1_ghHu5XSnbMihJUMjhsYx_W1WTzmVmBj3Wlow5CYzEQo","lore_tm_v1_xNa_HCF_ZnabQZDd5vMAu45ugTDOzHVlI9rPsPhXRgA"]
Date: Sep 15, 2026
packages/core/test/session-runner.test.ts; setup resets shared runner-test state including response = [], systemBaseline = "Initial context", systemRemoved = false, systemUnavailable = false, systemLoadHook = Effect.void, modelResolveHook = Effect.void, currentModel = model, skillBaselines.clear(), stream/tool gates, toolExecutionsReady = 5, activeToolExecutions = 0, and maxActiveToolExecutions = 0, then inserts ProjectTable worktree /project and calls insertSession(sessionID).setupOverflowRecovery in packages/core/test/session-runner.test.ts creates an earlier turn using prompt "Earlier question ".repeat(700), resumes it, switches currentModel to recoveryModel, clears requests, and returns the session.packages/core/test/session-projector.test.ts.packages/core/test/session-runner.test.ts; its displayed length increased from 3508 to 3555 lines.packages/core/test/session-execution-local.test.ts twice.packages/core/test/session-runner.test.ts includes tests named rebuilds the baseline directly after completed compaction, automatically compacts into a completed summary and retained recent turn, retains only complete serialized messages during compaction, summarizes an oversized newest message without retaining a fragment, forces one compaction and retries after provider context overflow, and preserves effective System updates while compaction rebaseline is blocked.packages/core/test/session-runner.test.ts expects 2 LLM requests, both with headers "x-session-affinity": sessionID and "X-Session-Id": sessionID; the first request asks for a summary containing ## Objective, and the continuation contains <summary>\n## Objective\n- Preserve the task\n</summary> plus the exact repeated recent request. Persisted context is expected to have message types ["compaction", "assistant"].<prior-summary>\n## Objective\n- Preserve the task\n</prior-summary> and Recent exact request, then replaces the stored compaction summary with ## Objective\n- Preserve the updated task.EARLIER_BOUNDARY ${"a".repeat(3_000)} EARLIER_END and RECENT_BOUNDARY ${"b".repeat(3_000)} RECENT_END; it expects the earlier message exactly once in the summary, excludes the recent message from that summary, excludes the earlier boundaries from continuation, and retains <recent-context>\n[Assistant]: Earlier answer plus the complete recent message.OVERSIZED_BOUNDARY ${"x".repeat(4_500)} OVERSIZED_END; it expects the complete oversized message exactly once in the summary, no oversized boundary fragment in continuation, and an empty <recent-context>\n\n</recent-context>./home/byk/Code/opencode/packages/core/test/session-compaction.test.ts.