Skip to content

The Assist debug view shows what Jev answered for each command - #21

Merged
AboveColin merged 4 commits into
feature/1.16from
voice-trace
Sep 24, 2026
Merged

AboveColin merged 4 commits into
feature/1.16from
voice-trace

Conversation

@AboveColin

Copy link
Copy Markdown
Owner

Each voice command now adds one agent detail to the conversation trace with chat_log.async_trace. The Assist debug view shows it next to the pipeline's own steps.

The detail holds the record that diagnostics already keep (text, latency, input tokens, exposed entity count and the decision) and also the model and every answer with its probabilities. The entity question's distribution explains why a command picked a device, and the decision alone does not show it. Diagnostics keep the shorter record, because they hold the last commands in memory.

Test: test_the_assist_debug_view_shows_what_jev_answered. It fails on voice-budget (0 agent details) and passes here.

Local gate: ruff, ruff format, mypy --strict, pytest (410 passed, 12 skipped, coverage 96.86%), config_flow 100%, mkdocs --strict, hassfest (0 invalid). EXIT 0.

Part 2 of the 1.16 work. Stacked on #20: the base is voice-budget and it moves to feature/1.16 when #20 merges.

Each command adds one agent detail to the conversation trace: the decision,
the latency and tokens, and every answer with its probabilities. The debug
view then shows why a command picked a device or fell back, without a
diagnostics download.
chat_log.async_trace() writes to the conversation trace, and nothing in
Home Assistant 2026.9.3 reads that: pipeline_debug/get showed only
run-start, intent-start, intent-end and run-end.

The agent now sends the record to the chat log's delta listener as
thinking_content. The pipeline stores it as an intent-progress event, and
the Assist dialog appends thinking_content under the reply. On a
development instance pipeline_debug/get held the event for an action and
for a refusal, with the decision, the slots, the top three options of
each answer, the model, the input tokens and the latency.

The delta goes to the listener only and is not added to the chat log, so
a fallback agent reading the same conversation does not see it.
@AboveColin
AboveColin changed the base branch from voice-budget to feature/1.16 September 24, 2026 09:49
@AboveColin
AboveColin merged commit 1b20c7b into feature/1.16 Sep 24, 2026
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant