Skip to content

Team/Enterprise: prompt.context skip notice still prints every session after #2167 #2243

Closed

Description

@sshevlyagin

Follow-up to #2159. Since #2160 and #2167 the Inbox reminder reaches guarded sessions through the prompt.submit fallback, and the classic.PermissionRequest line is gone. But every session under cc-plugin-sec-default still prints:

plannotator: its prompt.context hook was skipped. "cc-plugin-sec-default" runs first and sent the event on past it.

hooks/mod/register.ts still registers on('prompt.context', …) unconditionally (true as of v0.28.33), so the guard skips it, and Claude Code prints the line, on every start. The fallback already works, so the line reports nothing anyone can act on, but it reads as a fault.

Suggestion: when inboxReminderContextWorks is already stored as false, don't register the prompt.context hook. To pick up a machine that leaves the guarded setup, re-probe now and then (for example once every N sessions, or after a Claude Code version change) instead of every session.

Seen with 0.28.31; v0.28.33 registers the hook the same way.

Activity

  1. oronbz commented on Oct 28, 2026

    @oronbz

    Still reproducing on my side with the same notice in the session transcript (both classic.SessionStart and prompt.context are reported as skipped):

    • Claude Code 2.1.312 (macOS, interactive CLI)
    • plannotator 0.28.31
    • Signed in to a Team/Enterprise org

    Happy to share more detail (e.g. the exact transcript lines) if useful.

  2. backnotprop commented on Oct 31, 2026

    @backnotprop
    Owner

    Thanks, both of you. Claude Code prints this line for any plugin hook a guard passes over, so we're moving the Inbox reminder and the resume list to a path the guard doesn't skip. That removes the prompt.context and SessionStart lines. A line at the first permission prompt may remain until Claude Code offers a way to mark a hook as fine to skip. No details needed.

  3. added 2 commits that reference this issue on Oct 31, 2026
  4. backnotprop commented on Nov 22, 2026

    @backnotprop
    Owner

    Since v0.28.41 Plannotator registers no prompt.context or SessionStart hook, so a guard plugin has nothing to skip and the line no longer prints at session start. A similar line can still appear during a plan approval, because that one hook is needed; please reopen if you see the start-of-session line on a current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions