Skip to content

Conversation

@code-yeongyu
Copy link
Contributor

@code-yeongyu code-yeongyu commented Jan 1, 2026

Summary

The README currently instructs users to disable anthropic-auto-compact hook, but this hook name doesn't exist in Oh My OpenCode.

The correct hook name is anthropic-context-window-limit-recovery.

Details

The hook was renamed in commit f7696a1 on 2025-12-30, released in v2.8.0.

Commit message:

refactor: rename anthropic-auto-compact to anthropic-context-window-limit-recovery

The old name 'auto-compact' was misleading - the hook does much more than just compaction. It's a full recovery pipeline for context window limit errors including:

  • DCP (Dynamic Context Pruning)
  • Aggressive/single truncation
  • Summarize with retry
  • Emergency message revert

The new name accurately describes its purpose: recovering from Anthropic context window limit exceeded errors.

Affected versions: v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.9.0 and later

Changes

  • Fixed hook name from anthropic-auto-compact to anthropic-context-window-limit-recovery

🤖 Generated with assistance of OhMyOpenCode

The correct hook name is 'anthropic-context-window-limit-recovery', not 'anthropic-auto-compact'.

🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
```json
{
"disabled_hooks": ["anthropic-auto-compact"]
"disabled_hooks": ["anthropic-context-window-limit-recovery"]

This comment was marked as outdated.

Also update CLI flag from --disable-auto-compact to --disable-context-recovery
to match the new hook naming convention.

🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
@code-yeongyu
Copy link
Contributor Author

Fixed the Sentry bot's finding in commit 93f96db.

Changes to src/cli.ts:

  • Hook name: anthropic-auto-compactanthropic-context-window-limit-recovery
  • CLI flag: --disable-auto-compact--disable-context-recovery

All 12 occurrences updated.

@nexxeln nexxeln merged commit 9519f6d into supermemoryai:main Jan 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants