{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_interrupt_exit_semantics.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_interrupt_exit_semantics.py"},"lines":{"text":"        tui._append_run_elapsed_to_history = lambda stop_reason=None: None\n"},"line_number":305,"absolute_offset":9359,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":13,"end":42}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_interrupt_exit_semantics.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":54829,"human":"0.000055s"},"searches":1,"searches_with_match":1,"bytes_searched":9893,"bytes_printed":487,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"},"lines":{"text":"        # _append_assistant_text → _flush_assistant_segment 入 history\n"},"line_number":166,"absolute_offset":6443,"submatches":[{"match":{"text":"append_assistant_text → _flush_assistant_segment 入 history"},"start":11,"end":73}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":30428,"human":"0.000030s"},"searches":1,"searches_with_match":1,"bytes_searched":6910,"bytes_printed":507,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_command.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_command.py"},"lines":{"text":"    def seed_user_message(self, text: str) -> None:\n"},"line_number":20,"absolute_offset":665,"submatches":[{"match":{"text":"seed_user_message"},"start":8,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_command.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":37579,"human":"0.000038s"},"searches":1,"searches_with_match":1,"bytes_searched":4679,"bytes_printed":431,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_compact_command_semantics.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_compact_command_semantics.py"},"lines":{"text":"    def seed_user_message(self, content: str) -> None:\n"},"line_number":22,"absolute_offset":769,"submatches":[{"match":{"text":"seed_user_message"},"start":8,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_compact_command_semantics.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":30581,"human":"0.000031s"},"searches":1,"searches_with_match":1,"bytes_searched":9640,"bytes_printed":454,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_slash_command.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_slash_command.py"},"lines":{"text":"    def seed_user_message(self, text: str) -> None:\n"},"line_number":23,"absolute_offset":603,"submatches":[{"match":{"text":"seed_user_message"},"start":8,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_slash_command.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":60769,"human":"0.000061s"},"searches":1,"searches_with_match":1,"bytes_searched":25485,"bytes_printed":435,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"  2. _append_history_entry(tool_result) 之后\n"},"line_number":5,"absolute_offset":149,"submatches":[{"match":{"text":"append_history"},"start":6,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"  3. seed_user_message() 提交 user entry 之后\n"},"line_number":6,"absolute_offset":196,"submatches":[{"match":{"text":"seed_user_message"},"start":5,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"def test_seed_user_message_flushes_pending_logs_attaching_to_user() -> None:\n"},"line_number":24,"absolute_offset":790,"submatches":[{"match":{"text":"seed_user_message"},"start":9,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"hello\")\n"},"line_number":28,"absolute_offset":1051,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"hello\")\n"},"line_number":47,"absolute_offset":1761,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"ddddd\")\n"},"line_number":58,"absolute_offset":2249,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"跑这个\")\n"},"line_number":89,"absolute_offset":3865,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"next turn\")\n"},"line_number":112,"absolute_offset":4869,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"def test_seed_user_message_flushes_log_after_file_ref_hint(tmp_path) -> None:\n"},"line_number":118,"absolute_offset":5017,"submatches":[{"match":{"text":"seed_user_message"},"start":9,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"@main.py\")\n"},"line_number":123,"absolute_offset":5385,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"帮我跑这个\")\n"},"line_number":149,"absolute_offset":6414,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer.seed_user_message(\"hi\")\n"},"line_number":180,"absolute_offset":7541,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":68087,"human":"0.000068s"},"searches":1,"searches_with_match":1,"bytes_searched":8015,"bytes_printed":3974,"matched_lines":12,"matches":12}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_elapsed_status.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_elapsed_status.py"},"lines":{"text":"        tui._append_run_elapsed_to_history(stop_reason=\"interrupted\")\n"},"line_number":24,"absolute_offset":620,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":13,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_elapsed_status.py"},"lines":{"text":"            tui._append_run_elapsed_to_history(stop_reason=\"completed\")\n"},"line_number":35,"absolute_offset":1155,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":17,"end":46}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_elapsed_status.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":23201,"human":"0.000023s"},"searches":1,"searches_with_match":1,"bytes_searched":1353,"bytes_printed":817,"matched_lines":2,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_streaming.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_streaming.py"},"lines":{"text":"    def test_emit_appends_history_entry(self):\n"},"line_number":268,"absolute_offset":10903,"submatches":[{"match":{"text":"appends_history"},"start":18,"end":33}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_streaming.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":37876,"human":"0.000038s"},"searches":1,"searches_with_match":1,"bytes_searched":36461,"bytes_printed":446,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"    \"\"\"验证 buffer.reset(append_to_history=True) 正确保存输入到历史。\n"},"line_number":139,"absolute_offset":6487,"submatches":[{"match":{"text":"append_to_history"},"start":27,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"    def test_reset_appends_text_to_history(self) -> None:\n"},"line_number":144,"absolute_offset":6649,"submatches":[{"match":{"text":"appends_text_to_history"},"start":19,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"        buf.reset(Document(\"\"), append_to_history=True)\n"},"line_number":149,"absolute_offset":6817,"submatches":[{"match":{"text":"append_to_history"},"start":32,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"        buf.reset(Document(\"\"), append_to_history=True)\n"},"line_number":152,"absolute_offset":6910,"submatches":[{"match":{"text":"append_to_history"},"start":32,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"        buf.reset(Document(\"\"), append_to_history=True)\n"},"line_number":162,"absolute_offset":7225,"submatches":[{"match":{"text":"append_to_history"},"start":32,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"        buf.reset(Document(\"\"), append_to_history=True)\n"},"line_number":171,"absolute_offset":7501,"submatches":[{"match":{"text":"append_to_history"},"start":32,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"        buf.reset(Document(\"\"), append_to_history=True)\n"},"line_number":173,"absolute_offset":7589,"submatches":[{"match":{"text":"append_to_history"},"start":32,"end":49}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":55378,"human":"0.000055s"},"searches":1,"searches_with_match":1,"bytes_searched":8131,"bytes_printed":2359,"matched_lines":7,"matches":7}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_queue.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_queue.py"},"lines":{"text":"    renderer._append_history_entry(\n"},"line_number":91,"absolute_offset":3328,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_queue.py"},"lines":{"text":"    renderer.seed_user_message(\"new turn\")\n"},"line_number":138,"absolute_offset":5182,"submatches":[{"match":{"text":"seed_user_message"},"start":13,"end":30}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_queue.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":17196,"human":"0.000017s"},"searches":1,"searches_with_match":1,"bytes_searched":5307,"bytes_printed":745,"matched_lines":2,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_queue_sdk_source.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_queue_sdk_source.py"},"lines":{"text":"    def seed_user_message(self, text: str) -> None:\n"},"line_number":48,"absolute_offset":1297,"submatches":[{"match":{"text":"seed_user_message"},"start":8,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_queue_sdk_source.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":25708,"human":"0.000026s"},"searches":1,"searches_with_match":1,"bytes_searched":11475,"bytes_printed":442,"matched_lines":1,"matches":1}}}
{"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":"    def _append_run_elapsed_to_history(self, *, stop_reason: str | None = None) -> None:\n"},"line_number":842,"absolute_offset":33776,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":9,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._append_run_elapsed_to_history(stop_reason=\"error\")\n"},"line_number":889,"absolute_offset":35818,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":14,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        self._renderer.seed_user_message(\n"},"line_number":927,"absolute_offset":37115,"submatches":[{"match":{"text":"seed_user_message"},"start":23,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                            self._renderer.seed_user_message(display_text)\n"},"line_number":1003,"absolute_offset":40862,"submatches":[{"match":{"text":"seed_user_message"},"start":43,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                            self._renderer.seed_user_message(display_text)\n"},"line_number":1015,"absolute_offset":41494,"submatches":[{"match":{"text":"seed_user_message"},"start":43,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                        self._append_run_elapsed_to_history(stop_reason=stop_reason)\n"},"line_number":1083,"absolute_offset":45330,"submatches":[{"match":{"text":"append_run_elapsed_to_history"},"start":30,"end":59}]}}
{"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":158289,"human":"0.000158s"},"searches":1,"searches_with_match":1,"bytes_searched":72168,"bytes_printed":2175,"matched_lines":6,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"        renderer.seed_user_message(\"hello\")\n"},"line_number":229,"absolute_offset":8549,"submatches":[{"match":{"text":"seed_user_message"},"start":17,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"        renderer.seed_user_message(\"hello\")\n"},"line_number":527,"absolute_offset":19673,"submatches":[{"match":{"text":"seed_user_message"},"start":17,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"        renderer.seed_user_message(\"hello\")\n"},"line_number":566,"absolute_offset":21091,"submatches":[{"match":{"text":"seed_user_message"},"start":17,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"            renderer.seed_user_message(f\"check @{test_file.name}\")\n"},"line_number":1335,"absolute_offset":52388,"submatches":[{"match":{"text":"seed_user_message"},"start":21,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"            renderer.seed_user_message(\"look at @src/\")\n"},"line_number":1351,"absolute_offset":53106,"submatches":[{"match":{"text":"seed_user_message"},"start":21,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"            renderer.seed_user_message(\"check @nonexistent.py\")\n"},"line_number":1362,"absolute_offset":53627,"submatches":[{"match":{"text":"seed_user_message"},"start":21,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"            renderer.seed_user_message(\"compare @a.py and @b.py with @src/ @docs/\")\n"},"line_number":1381,"absolute_offset":54349,"submatches":[{"match":{"text":"seed_user_message"},"start":21,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"        renderer.seed_user_message(\"hello world\")\n"},"line_number":1395,"absolute_offset":55082,"submatches":[{"match":{"text":"seed_user_message"},"start":17,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"            renderer.seed_user_message(\"contact user@example.com\")\n"},"line_number":1404,"absolute_offset":55477,"submatches":[{"match":{"text":"seed_user_message"},"start":21,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"lines":{"text":"                renderer.seed_user_message(\"check @big.bin\")\n"},"line_number":1421,"absolute_offset":56204,"submatches":[{"match":{"text":"seed_user_message"},"start":25,"end":42}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":157364,"human":"0.000157s"},"searches":1,"searches_with_match":1,"bytes_searched":56642,"bytes_printed":3319,"matched_lines":10,"matches":10}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _append_history_entry(self, entry: HistoryEntry) -> None:\n"},"line_number":347,"absolute_offset":11660,"submatches":[{"match":{"text":"append_history"},"start":9,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":410,"absolute_offset":14857,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":420,"absolute_offset":15351,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":435,"absolute_offset":15902,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                self._append_history_entry(\n"},"line_number":451,"absolute_offset":16563,"submatches":[{"match":{"text":"append_history"},"start":22,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def seed_user_message(self, content: str) -> None:\n"},"line_number":632,"absolute_offset":24106,"submatches":[{"match":{"text":"seed_user_message"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(HistoryEntry(entry_type=\"user\", text=normalized))\n"},"line_number":637,"absolute_offset":24284,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(\n"},"line_number":650,"absolute_offset":24842,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(HistoryEntry(entry_type=\"file_ref\", text=hint))\n"},"line_number":663,"absolute_offset":25492,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":688,"absolute_offset":26326,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":789,"absolute_offset":30165,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":808,"absolute_offset":30724,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":837,"absolute_offset":31764,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(HistoryEntry(entry_type=\"elapsed\", text=normalized))\n"},"line_number":921,"absolute_offset":34470,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def append_assistant_message(self, content: str) -> None:\n"},"line_number":923,"absolute_offset":34559,"submatches":[{"match":{"text":"append_assistant_message"},"start":8,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(HistoryEntry(entry_type=\"assistant\", text=normalized))\n"},"line_number":928,"absolute_offset":34744,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":1042,"absolute_offset":39904,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":1078,"absolute_offset":41385,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":1085,"absolute_offset":41703,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":1089,"absolute_offset":41879,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":1151,"absolute_offset":44173,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":1194,"absolute_offset":45792,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":1204,"absolute_offset":46149,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._append_history_entry(\n"},"line_number":1223,"absolute_offset":47035,"submatches":[{"match":{"text":"append_history"},"start":18,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._append_history_entry(\n"},"line_number":1266,"absolute_offset":48937,"submatches":[{"match":{"text":"append_history"},"start":14,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(\n"},"line_number":1372,"absolute_offset":53457,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(\n"},"line_number":1546,"absolute_offset":62233,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(\n"},"line_number":1564,"absolute_offset":63165,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                    self._append_history_entry(HistoryEntry(entry_type=\"assistant\", text=plan_content))\n"},"line_number":1570,"absolute_offset":63485,"submatches":[{"match":{"text":"append_history"},"start":26,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                self._append_history_entry(\n"},"line_number":1575,"absolute_offset":63728,"submatches":[{"match":{"text":"append_history"},"start":22,"end":36}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":238934,"human":"0.000239s"},"searches":1,"searches_with_match":1,"bytes_searched":64645,"bytes_printed":9826,"matched_lines":30,"matches":30}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/history_sync.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/history_sync.py"},"lines":{"text":"        self._renderer.append_system_message(f\"history loaded: {len(history)} messages\")\n"},"line_number":86,"absolute_offset":3207,"submatches":[{"match":{"text":"append_system_message(f\"history loaded: {len(history"},"start":23,"end":75}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/history_sync.py"},"lines":{"text":"                    self._renderer.seed_user_message(content)\n"},"line_number":99,"absolute_offset":3889,"submatches":[{"match":{"text":"seed_user_message"},"start":35,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/history_sync.py"},"lines":{"text":"                    self._renderer.append_assistant_message(assistant_text)\n"},"line_number":130,"absolute_offset":5611,"submatches":[{"match":{"text":"append_assistant_message"},"start":35,"end":59}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/history_sync.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":41748,"human":"0.000042s"},"searches":1,"searches_with_match":1,"bytes_searched":16223,"bytes_printed":1258,"matched_lines":3,"matches":3}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"                    Document(\"\", cursor_position=0), append_to_history=True\n"},"line_number":179,"absolute_offset":6508,"submatches":[{"match":{"text":"append_to_history"},"start":53,"end":70}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":40344,"human":"0.000040s"},"searches":1,"searches_with_match":1,"bytes_searched":14278,"bytes_printed":508,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"lines":{"text":"            self._renderer.seed_user_message(command)\n"},"line_number":60,"absolute_offset":1873,"submatches":[{"match":{"text":"seed_user_message"},"start":27,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"lines":{"text":"            self._renderer.seed_user_message(\"/mcp\")\n"},"line_number":626,"absolute_offset":22598,"submatches":[{"match":{"text":"seed_user_message"},"start":27,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"lines":{"text":"            self._renderer.seed_user_message(\"/mcp\")\n"},"line_number":683,"absolute_offset":24832,"submatches":[{"match":{"text":"seed_user_message"},"start":27,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"lines":{"text":"        # seed_user_message + append_subtitle 必须在同一次 drain 批次中，\n"},"line_number":1228,"absolute_offset":43897,"submatches":[{"match":{"text":"seed_user_message"},"start":10,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"lines":{"text":"        self._renderer.seed_user_message(f\"/plugin marketplace add {repo}\")\n"},"line_number":1230,"absolute_offset":44055,"submatches":[{"match":{"text":"seed_user_message"},"start":23,"end":40}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/commands.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":138560,"human":"0.000139s"},"searches":1,"searches_with_match":1,"bytes_searched":62134,"bytes_printed":1857,"matched_lines":5,"matches":5}}}
{"data":{"elapsed_total":{"human":"0.014176s","nanos":14176478,"secs":0},"stats":{"bytes_printed":30040,"bytes_searched":413439,"elapsed":{"human":"0.001217s","nanos":1216871,"secs":0},"matched_lines":85,"matches":85,"searches":17,"searches_with_match":17}},"type":"summary"}
