fix(filesystem): remove chat request started noise

This commit is contained in:
BukeLy 2026-05-26 16:09:29 +08:00
parent cb1bfb00fa
commit beed21647f
2 changed files with 0 additions and 17 deletions

View file

@ -354,12 +354,6 @@ class PIFSAgentStreamObserver:
self._start_section("tool_call", "[llm -> pifs command]")
print(command, file=self.output, flush=True)
def emit_request_started(self) -> None:
if not (self.wants_model_stream or self.wants_tool_stream):
return
self._start_section("request_started", "[llm request started]")
print("waiting for first model token or PIFS tool call...", file=self.output, flush=True)
def emit_tool_result(
self,
*,
@ -525,7 +519,6 @@ class PIFSAgentSession:
self.normalized_stream_mode,
stream_log=self.agent_log,
)
self.observer.emit_request_started()
async def _run_streamed() -> str:
from agents import Runner

View file

@ -92,16 +92,6 @@ class PIFSAgentStreamTest(unittest.TestCase):
self.assertIn("more lines omitted from preview", printed)
self.assertNotIn("line 49", printed)
def test_request_started_prints_immediate_stream_feedback(self):
output = io.StringIO()
observer = PIFSAgentStreamObserver("all", output=output)
observer.emit_request_started()
printed = output.getvalue()
self.assertIn("[llm request started]", printed)
self.assertIn("waiting for first model token or PIFS tool call", printed)
def test_raw_reasoning_is_not_logged_by_default_but_summary_is(self):
output = io.StringIO()
stream_log = []