Skip to content

PreCompact hook blocks indefinitely — no escape condition #949

@mjvmsteixeira

Description

@mjvmsteixeira

hook_precompact() always returns {"decision": "block"} with no exit path,
causing /compact to be permanently blocked.

Fix: add session-level flag file (same pattern as Stop hook's stop_hook_active guard).
See: hooks_cli.py :: hook_stop() for reference implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions