{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"from comate_cli.terminal_agent.question_view import AskUserQuestionUI\n"},"line_number":92,"absolute_offset":3039,"submatches":[{"match":{"text":"question_"},"start":31,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"from comate_cli.terminal_agent.tool_approval_view import (\n"},"line_number":93,"absolute_offset":3109,"submatches":[{"match":{"text":"tool_approval"},"start":31,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        approval_bridge: Any | None = None,\n"},"line_number":252,"absolute_offset":8608,"submatches":[{"match":{"text":"approval_bridge"},"start":8,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._approval_bridge = approval_bridge\n"},"line_number":259,"absolute_offset":8889,"submatches":[{"match":{"text":"approval_bridge"},"start":14,"end":29},{"match":{"text":"approval_bridge"},"start":32,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._question_active = False\n"},"line_number":316,"absolute_offset":11327,"submatches":[{"match":{"text":"question_"},"start":14,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._sync_local_interactive_ui_barrier()\n"},"line_number":318,"absolute_offset":11407,"submatches":[{"match":{"text":"barrier"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._question_ui = AskUserQuestionUI()\n"},"line_number":507,"absolute_offset":19695,"submatches":[{"match":{"text":"question_"},"start":14,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                lambda: self._ui_mode != UIMode.BTW and self._has_active_tool_fold()\n"},"line_number":594,"absolute_offset":23375,"submatches":[{"match":{"text":"active_tool"},"start":66,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._question_container = ConditionalContainer(\n"},"line_number":679,"absolute_offset":26654,"submatches":[{"match":{"text":"question_"},"start":14,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            content=self._question_ui.container,\n"},"line_number":680,"absolute_offset":26711,"submatches":[{"match":{"text":"question_"},"start":26,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._tool_approval_container = ConditionalContainer(\n"},"line_number":687,"absolute_offset":27051,"submatches":[{"match":{"text":"tool_approval"},"start":14,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                self._question_container,\n"},"line_number":799,"absolute_offset":32514,"submatches":[{"match":{"text":"question_"},"start":22,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                self._tool_approval_container,\n"},"line_number":801,"absolute_offset":32599,"submatches":[{"match":{"text":"tool_approval"},"start":22,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._approval_bridge is not None:\n"},"line_number":824,"absolute_offset":33501,"submatches":[{"match":{"text":"approval_bridge"},"start":17,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            register = getattr(self._approval_bridge, \"register\", None)\n"},"line_number":825,"absolute_offset":33547,"submatches":[{"match":{"text":"approval_bridge"},"start":37,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                register(self._handle_tool_approval_request)\n"},"line_number":827,"absolute_offset":33654,"submatches":[{"match":{"text":"tool_approval"},"start":38,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _sync_local_interactive_ui_barrier(self) -> None:\n"},"line_number":844,"absolute_offset":34322,"submatches":[{"match":{"text":"barrier"},"start":35,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        setter = getattr(session, \"set_local_interactive_ui_barrier\", None)\n"},"line_number":846,"absolute_offset":34430,"submatches":[{"match":{"text":"barrier"},"start":60,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._question_active:\n"},"line_number":864,"absolute_offset":35310,"submatches":[{"match":{"text":"question_"},"start":17,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._sync_local_interactive_ui_barrier()\n"},"line_number":877,"absolute_offset":35778,"submatches":[{"match":{"text":"barrier"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _tool_approval_view(self) -> ToolApprovalView | None:\n"},"line_number":895,"absolute_offset":36493,"submatches":[{"match":{"text":"tool_approval"},"start":9,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _handle_tool_approval_request(\n"},"line_number":927,"absolute_offset":37628,"submatches":[{"match":{"text":"tool_approval"},"start":22,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                lambda: self._renderer.resolve_tool_approval_wait(tool_call_id),\n"},"line_number":976,"absolute_offset":39654,"submatches":[{"match":{"text":"tool_approval"},"start":47,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _handle_tool_approval_action(\n"},"line_number":987,"absolute_offset":40199,"submatches":[{"match":{"text":"tool_approval"},"start":16,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _cancel_pending_tool_approval(self, reason: str | None = None) -> None:\n"},"line_number":997,"absolute_offset":40509,"submatches":[{"match":{"text":"tool_approval"},"start":24,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _apply_stop_question_state(\n"},"line_number":1017,"absolute_offset":41405,"submatches":[{"match":{"text":"question_"},"start":20,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                self._enter_question_mode(questions)\n"},"line_number":1027,"absolute_offset":41788,"submatches":[{"match":{"text":"question_"},"start":28,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            self._clear_question_state()\n"},"line_number":1033,"absolute_offset":42019,"submatches":[{"match":{"text":"question_"},"start":24,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._clear_question_state()\n"},"line_number":1541,"absolute_offset":62104,"submatches":[{"match":{"text":"question_"},"start":20,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._clear_question_state()\n"},"line_number":1557,"absolute_offset":62831,"submatches":[{"match":{"text":"question_"},"start":20,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._clear_question_state()\n"},"line_number":1882,"absolute_offset":75353,"submatches":[{"match":{"text":"question_"},"start":20,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                            self._clear_question_state()\n"},"line_number":2023,"absolute_offset":81818,"submatches":[{"match":{"text":"question_"},"start":40,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                    self._apply_stop_question_state(waiting_for_input, questions)\n"},"line_number":2158,"absolute_offset":89109,"submatches":[{"match":{"text":"question_"},"start":37,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._sync_local_interactive_ui_barrier()\n"},"line_number":2703,"absolute_offset":110376,"submatches":[{"match":{"text":"barrier"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._sync_local_interactive_ui_barrier()\n"},"line_number":2717,"absolute_offset":110819,"submatches":[{"match":{"text":"barrier"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._clear_question_state()\n"},"line_number":2833,"absolute_offset":115228,"submatches":[{"match":{"text":"question_"},"start":20,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._cancel_pending_tool_approval(close_reason)\n"},"line_number":2874,"absolute_offset":117119,"submatches":[{"match":{"text":"tool_approval"},"start":29,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        approval_bridge = getattr(self, \"_approval_bridge\", None)\n"},"line_number":2875,"absolute_offset":117176,"submatches":[{"match":{"text":"approval_bridge"},"start":8,"end":23},{"match":{"text":"approval_bridge"},"start":42,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if approval_bridge is not None:\n"},"line_number":2876,"absolute_offset":117242,"submatches":[{"match":{"text":"approval_bridge"},"start":11,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            unregister = getattr(approval_bridge, \"unregister\", None)\n"},"line_number":2877,"absolute_offset":117282,"submatches":[{"match":{"text":"approval_bridge"},"start":33,"end":48}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":278629,"human":"0.000279s"},"searches":1,"searches_with_match":1,"bytes_searched":134766,"bytes_printed":12685,"matched_lines":40,"matches":42}}}
{"data":{"elapsed_total":{"human":"0.003624s","nanos":3624120,"secs":0},"stats":{"bytes_printed":12685,"bytes_searched":134766,"elapsed":{"human":"0.000279s","nanos":278629,"secs":0},"matched_lines":40,"matches":42,"searches":1,"searches_with_match":1}},"type":"summary"}
