Skip to content

fix(hooks): 会話外の AskUserQuestion を質問として記録しない・hook の送り主をログに残す #3446

Closed

Description

@Kewton

事象

#3437(PR #3441)の調査で、2026-10-07T23:41:35Z に Claude から、会話記録(transcript)に存在しない AskUserQuestion の pre_tool_use が届いたことが分かった(Stop の 2.5 秒後、送信なし)。PR #3441 で、これで新しいターンが開かないようにした。残った問題が 2 つある(#3437 のワーカーが範囲外として報告)。

  1. 質問の記録が残る: src/lib/hooks/agent-event-intake.ts:390 の recordQuestionIfAsked は、pre_tool_use が AskUserQuestion を運んでいれば、会話の外から来たものでも質問のレコードを残す(ログ ask-user-question-recorded)。画面にはピッカーが出ていないのに、質問が待っていると扱われうる
  2. 送り主を後から特定できない: intake は hook の payload の識別子(session_id・agent_id・transcript_path など)をログに残さない。今回も送り主(本会話か、内部の後処理か)を特定できなかった

調べること・受入基準

分類

  • 原因の PR: 不明
  • 発見経路: orchestrate
  • 影響する経路: chat, mobile, push

Activity

  1. Kewton commented on Oct 8, 2026

    @Kewton
    OwnerAuthor

    PR #3459(develop マージ済み・本番サーバーに反映済み)で対応しました。PermissionRequest 経由の経路は #3458 で追跡します。

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions