fix(agents): 会话标题过滤 task-notification 协议行

This commit is contained in:
Zhengshou Lai
2026-08-23 18:52:29 +08:00
parent bcd780b045
commit 8ec7465d8b
+1 -1
View File
@@ -779,7 +779,7 @@ def _sessions_dir(backend: str, chat_cwd: Path) -> Path:
# Claude Code local-command protocol rows (not human chat); skip when picking
# the first-prompt fallback title.
_LOCAL_COMMAND_NOISE_RE = re.compile(
r"^\s*<(?:local-command-caveat|local-command-stdout|command-name)\b",
r"^\s*<(?:local-command-caveat|local-command-stdout|command-name|task-notification)\b",
re.IGNORECASE,
)