fix: add debug logging for session detail fallback (#380) #381

Closed
xiaoju wants to merge 1 commits from fix/380-hermes-quiet-flag into main
Owner

What

Add diagnostic logging in uwf-hermes when structured session detail falls back to raw text.

Why

Investigation of #380 found the original diagnosis was wrong — --quiet flag was already present. The intermittent fallback has an unknown root cause (possibly race condition on session file write, or unexpected stderr/stdout content).

Debug logging captures the exact failure point:

  • session_id parsed but session file not loadable
  • session_id not parsed (with stderr/stdout preview for analysis)

Changes

  • workflow-agent-hermes/hermes.ts — stderr diagnostic messages on fallback path

Ref

Refs #380

## What Add diagnostic logging in `uwf-hermes` when structured session detail falls back to raw text. ## Why Investigation of #380 found the original diagnosis was wrong — `--quiet` flag was already present. The intermittent fallback has an unknown root cause (possibly race condition on session file write, or unexpected stderr/stdout content). Debug logging captures the exact failure point: - `session_id` parsed but session file not loadable - `session_id` not parsed (with stderr/stdout preview for analysis) ## Changes - **workflow-agent-hermes/hermes.ts** — stderr diagnostic messages on fallback path ## Ref Refs #380
xiaoju added 1 commit 2026-05-22 08:21:58 +00:00
When uwf-hermes falls back to raw text detail, log the reason:
- session_id parsed but session file not found
- session_id not parsed (with stderr/stdout preview)

This helps diagnose intermittent structured detail loss (#380).
xiaoju closed this pull request 2026-05-22 08:24:12 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#381