claude-code - 💡(How to fix) Fix Monitor notifications should not influence session title generation

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Problem

When a plugin defines a declarative monitor (via monitors.json), the monitor's initial output is emitted before the user types anything. Claude Code treats this as the first "prompt" and generates the session title from it — overwriting any terminal title the user or their tooling set.

For example, the agent-relay plugin has a monitor that registers the agent and emits connection context at session start. This causes every session to be titled something like:

"Set up Agent Relay inbox monitorin (project-name)"

…instead of reflecting the user's actual first prompt.

Expected behavior

Session title should be derived from the user's first prompt, not from background monitor/task notifications. Monitor output is plugin infrastructure — it shouldn't drive the user-facing session name.

Reproduction

  1. Install a plugin with a declarative monitor that emits output at session start
  2. Start a new Claude Code session
  3. Observe the session/terminal title is based on the monitor output, not the user's first prompt

Suggested fix

Exclude monitor events (task notifications) from the title generation input. Only use actual user prompts to generate the session title.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Session title should be derived from the user's first prompt, not from background monitor/task notifications. Monitor output is plugin infrastructure — it shouldn't drive the user-facing session name.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Monitor notifications should not influence session title generation