This commit is contained in:
2026-08-21 11:13:18 +08:00
parent beba8744b4
commit 41ed846c23
2028 changed files with 1327194 additions and 293 deletions
+8
View File
@@ -72,6 +72,14 @@ class WorkspaceStore:
def conversation_path(self, conversation_id: str) -> Path:
return self.conversation_dir(conversation_id) / "conversation.json"
def write_tool_call_diagnostic(self, conversation_id: str, payload: dict[str, Any]) -> str:
"""Persist one failed model tool call without creating a CAD revision."""
conversation = safe_conversation_id(conversation_id)
relative = Path("diagnostics") / f"tool_call_{secrets.token_hex(8)}.json"
path = self.conversation_dir(conversation) / relative
write_json(path, payload)
return (Path(conversation) / relative).as_posix()
def ensure_conversation(
self,
conversation_id: str | None,