checkpoint: finished test curation
This commit is contained in:
19
gui_2.py
19
gui_2.py
@@ -733,6 +733,19 @@ class App:
|
||||
def _on_comms_entry(self, entry: dict):
|
||||
session_logger.log_comms(entry)
|
||||
entry["local_ts"] = time.time()
|
||||
|
||||
# If this is a history_add kind, route it to history queue instead
|
||||
if entry.get("kind") == "history_add":
|
||||
payload = entry.get("payload", {})
|
||||
with self._pending_history_adds_lock:
|
||||
self._pending_history_adds.append({
|
||||
"role": payload.get("role", "AI"),
|
||||
"content": payload.get("content", ""),
|
||||
"collapsed": payload.get("collapsed", False),
|
||||
"ts": entry.get("ts", project_manager.now_ts())
|
||||
})
|
||||
return
|
||||
|
||||
with self._pending_comms_lock:
|
||||
self._pending_comms.append(entry)
|
||||
|
||||
@@ -799,6 +812,12 @@ class App:
|
||||
self._ask_request_id = task.get("request_id")
|
||||
self._ask_tool_data = task.get("data", {})
|
||||
|
||||
elif action == "clear_ask":
|
||||
if self._ask_request_id == task.get("request_id"):
|
||||
self._pending_ask_dialog = False
|
||||
self._ask_request_id = None
|
||||
self._ask_tool_data = None
|
||||
|
||||
elif action == "custom_callback":
|
||||
cb = task.get("callback")
|
||||
args = task.get("args", [])
|
||||
|
||||
Reference in New Issue
Block a user