代码提交
This commit is contained in:
1 parent
bf42a48fcc
commit
75f288b241
17 files changed
+65
-69
No files matched your search
+2
-2
@@ -236,8 +236,8 @@ class AppearanceSettings(BaseModel):
|
||||
description="Default agent list display mode for users who haven't picked their own (card / list)",
|
||||
)
|
||||
default_layout_mode: Literal["full", "compact"] = Field(
|
||||
default="full",
|
||||
description="Default interface layout for users who haven't picked their own — full (sidebar + header) / compact (hidden)",
|
||||
default="compact",
|
||||
description="Default interface layout for users who haven't picked their own — compact (hidden) / full (sidebar + header)",
|
||||
)
|
||||
compact_shortcut_buttons: list[CompactShortcutButton] = Field(
|
||||
default_factory=_default_compact_shortcut_buttons,
|
||||
|
||||
+8
-2
@@ -55,8 +55,14 @@ def loads_dict(value: Any) -> dict[str, Any]:
|
||||
return {}
|
||||
|
||||
|
||||
def make_node_run_id(node_id: str, attempt: int) -> str:
|
||||
return f"{node_id}-attempt{attempt}"
|
||||
def make_node_run_id(run_id: str, node_id: str, attempt: int) -> str:
|
||||
"""Return ``${run_id}-${node_id}-attempt{attempt}``.
|
||||
|
||||
The node-runs table primary key is ``node_run_id`` alone, so the id must
|
||||
carry the run dimension: two runs sharing a plan template would otherwise
|
||||
collide on the same deterministic ``${node_id}-attempt{n}`` string.
|
||||
"""
|
||||
return f"{run_id}-{node_id}-attempt{attempt}"
|
||||
|
||||
|
||||
def is_terminal_run(status: str) -> bool:
|
||||
|
||||
+1
-1
@@ -494,7 +494,7 @@ class MemoryReportCollaborationStore(ReportCollaborationStore):
|
||||
node_id = str(node.get("id") or "")
|
||||
if not node_id:
|
||||
continue
|
||||
node_run_id = make_node_run_id(node_id, 1)
|
||||
node_run_id = make_node_run_id(run_id, node_id, 1)
|
||||
role_key = str(node.get("role_key") or "")
|
||||
self._node_runs[node_run_id] = {
|
||||
"node_run_id": node_run_id,
|
||||
|
||||
+1
-1
@@ -884,7 +884,7 @@ class SqlReportCollaborationStore(ReportCollaborationStore):
|
||||
snapshot = (role_snapshots or {}).get(role_key)
|
||||
db.add(
|
||||
ReportCollaborationNodeRunRow(
|
||||
node_run_id=make_node_run_id(node_id, 1),
|
||||
node_run_id=make_node_run_id(run_id, node_id, 1),
|
||||
session_id=session_id,
|
||||
run_id=run_id,
|
||||
node_id=node_id,
|
||||
|
||||
Reference in new issue
Block a user