forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Task Description
Remove the 1m-context fork feature entirely. It causes errors on startup and is no longer needed.
Changes Required
Revert fork modifications in 4 files:
packages/opencode/src/provider/provider.ts— Removecontext-1m-2025-08-07from anthropic-beta header; delete context limit override block (lines ~650-654)packages/opencode/src/plugin/copilot.ts— Revert anthropic-beta header to upstream'sinterleaved-thinking-2025-05-14onlypackages/opencode/src/session/compaction.ts— Add back+ input.tokens.outputto overflow calculationpackages/opencode/src/provider/transform.ts— Revert Opus 4.6 effort-based variants to upstream's simple budgetTokens pattern
Update fork governance:
5. .fork-features/manifest.json — Set 1m-context status to "dropped"
6. .fork-features/verify.ts — No changes needed (verifier already skips non-active features)
Quality Gates (Non-Negotiable)
- Typecheck:
bun run typecheckpasses - Tests:
bun testpasses (no regressions) - Feature verification:
bun test .fork-features/verify.tspasses - No fork feature damage: async-tasks and rg-tool remain intact
Acceptance Criteria
- No references to
context-1m-2025-08-07remain in source code - No context limit override to 1,000,000 remains
- Compaction overflow includes output tokens (upstream behavior)
- Manifest shows 1m-context as "dropped"
- Binary starts without 1M context errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels