You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UN-3431 [FIX] Restore log_events_id on tool-run dispatch and persist without UI subscriber (#1960)
* UN-3431 [FIX] Restore log_events_id on tool-run dispatch and persist without UI subscriber
structure_tool_task lost log_events_id from both the agentic_table and
structure_pipeline ExecutionContexts during the agentic_table refactor;
the executor shim therefore received an empty log_events_id and bailed
before publishing anything. Tool-run lines stopped reaching the workflow
logs UI for every dispatch through these paths.
Two changes:
- structure_tool_task: thread log_events_id into both ExecutionContexts.
- executor_tool_shim.stream_log: gate only the PROGRESS path on
log_events_id; the LOG payload now falls back to execution_id as the
routing channel so logs persist to execution_log even when no
websocket subscriber exists (API deployments).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* UN-3431 [MISC] Improve tool-run log narrative for workflow execution UI
Reshape the per-run shim.stream_log emissions so the workflow logs UI
reads as a per-phase narrative with one start, one end, and adapter
identity surfaced exactly once per unique adapter:
- Add a non-sensitive run-config preamble at the top of
_handle_structure_pipeline: prompt count + single_pass / summarize /
challenge flags. No prompt names or text are logged.
- Introduce ExecutorToolShim.log_adapter_once(kind, adapter_id, adapter)
with a per-shim dedup set so "Using LLM/Embedding/Vector DB:
`<model>`" appears at most once per unique adapter id. Used from
_initialize_adapters, _handle_index, and the summarize path.
- Drop intermediate / redundant lines that did not add information
on their own: "Initializing text extractor", "Using text extractor"
(rolled into the start line), "Extracting text from document",
"Saving extraction metadata", "Initialized embedding and vector DB
adapters", "Indexing file", "Adding nodes to vector db".
- Collapse the index-status trio ("Document already indexed,
re-indexing" + "Indexing document for the first time" + "Indexing
document into vector store") into a single "Indexing document" /
"Re-indexing document" line driven by doc_id_found.
- Gate "Retrieving context for" and "Retrieved N chunks via RAG for"
on chunk_size > 0 so single-pass / full-context paths do not emit
a misleading retrieval line.
- Combine summarize start into one line that names the LLM model.
- Wrap dynamic identifiers (adapter labels, extractor class, prompt
names) in backticks; drop trailing "..." across all stream_log
emissions.
- Emit a final "Pipeline completed: N/M prompts answered" with a
non-null count from structured_output[OUTPUT].
Pairs with the cloud-side log cleanup PR.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: vishnuszipstack <117254672+vishnuszipstack@users.noreply.github.com>
0 commit comments