MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / persist_session

Method persist_session

claw-code/src/query_engine.py:140–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 self.transcript_store.flush()
139
140 def persist_session(self) -> str:
141 self.flush_transcript()
142 path = save_session(
143 StoredSession(
144 session_id=self.session_id,
145 messages=tuple(self.mutable_messages),
146 input_tokens=self.total_usage.input_tokens,
147 output_tokens=self.total_usage.output_tokens,
148 )
149 )
150 return str(path)
151
152 def _format_output(self, summary_lines: list[str]) -> str:
153 if self.config.structured_output:

Callers 2

bootstrap_sessionMethod · 0.45
mainFunction · 0.45

Calls 3

flush_transcriptMethod · 0.95
save_sessionFunction · 0.85
StoredSessionClass · 0.85

Tested by

no test coverage detected