You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "me2seeks (via GitHub)" <gi...@apache.org> on 2026/09/09 09:25:35 UTC

[I] bug(desktop): Session Inspector omits generic-lane tool calls after live refresh [maka]

me2seeks opened a new issue, #5092:
URL: https://github.com/apache/maka/issues/5092

   ## What happened
   
   Desktop Session Inspector permanently omits tool calls recorded on the generic call/response lane, even though the conversation renders the same tool and the panel receives the live refresh events.
   
   In a deterministic Electron reproduction, the Inspector was open before an `AskUserQuestion` call began. The conversation showed the active question, but the timeline still had no `AskUserQuestion` step after 5 seconds. After answering all questions, the conversation showed the completed tool and assistant response, but the timeline still had no tool step after another 5 seconds. The new turn itself appeared in the timeline, so this is a projection coverage gap rather than a failure to rerender the panel.
   
   Expected: every persisted tool call/result pair appears as one trace step, including generic-lane and pre-dispatch calls. While pending it should be `in_flight`; after its result it should be `completed` or `failed`.
   
   Actual: only calls carrying `RuntimeEvent.actions.toolDispatch` become trace tool steps. A generic `content.kind = function_call` followed by `function_response` is ignored.
   
   This is reachable outside the fake-backend reproduction. `ToolRuntime` deliberately keeps pre-dispatch refusals on the generic lane, including exclusive-step admission failures, invalid arguments, loop-gate refusals, deferred tools used before loading, execution-boundary read failures, and subagent-cap refusals. Those durable call/response facts are therefore absent from the Inspector.
   
   ## How to reproduce
   
   1. Launch the Desktop Electron E2E fixture and send a normal prompt to create a session.
   2. Open Workbar → Trace.
   3. Send `__e2e_ask_user_question__`.
   4. Wait for the `AskUserQuestion` interaction to appear in the conversation, then wait at least 5 seconds (the trace refresh debounce is 400 ms).
   5. Observe that the new turn is present in the timeline but it has no `AskUserQuestion` step.
   6. Answer all three questions and wait for `Fake question answers: ...` to appear.
   7. Wait another 5 seconds and observe that the tool is still absent from the timeline.
   
   Equivalent projection-level reproduction: pass `projectSessionTrace` one persisted `function_call` RuntimeEvent and its matching `function_response`, without `actions.toolDispatch`. The resulting turn has no tool step.
   
   ## Environment
   
   - Maka commit: `30cf0beb0def57626df3fdbf8c7ab4d0d3436896`
   - OS: Linux 7.0.0-30-generic x86_64
   - Surface: Desktop Electron E2E / Session Inspector
   - Node.js: v26.3.0
   
   ## Logs, screenshots, or additional context
   
   Relevant source boundary:
   
   - `session-event-runtime-mapper.ts` maps ordinary `tool_start` / `tool_result` to `content.kind = function_call` / `function_response`.
   - `session-trace-projection.ts::projectEventSteps` creates a tool step only when `event.actions?.toolDispatch` exists; a later `function_response` can only settle a step that was created through that branch.
   - `tool-runtime.ts` documents and implements the production pre-dispatch paths that remain on the generic call/response lane.
   - `session-trace-refresh.ts` already treats both `tool_start` and `tool_result` as refresh-relevant. Increasing or repeating the timer alone would still reread a projection that omits these facts.
   
   The current unit tests cover atomic `toolDispatch` projection and renderer refresh scheduling separately, but there is no coverage for a generic persisted call/response pair or for live end-to-end tool appearance in the Inspector.
   
   Related to the live-update goal in #1625, but this is a concrete implemented-surface defect with a deterministic reproduction.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(desktop): Session Inspector omits generic-lane tool calls after live refresh [maka]

Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks closed issue #5092: bug(desktop): Session Inspector omits generic-lane tool calls after live refresh
URL: https://github.com/apache/maka/issues/5092


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(desktop): Session Inspector omits generic-lane tool calls after live refresh [maka]

Posted by "yuzhiyang1 (via GitHub)" <gi...@apache.org>.
yuzhiyang1 commented on issue #5092:
URL: https://github.com/apache/maka/issues/5092#issuecomment-5600704470

   Automated disclosure: this claim and follow-up were posted by OpenAI Codex at @yuzhiyang1's direction. I will add projection tests for generic function_call/function_response pairs, then make Session Inspector project them without duplicating the ordinary toolDispatch lane. @yuzhiyang1 remains the human contributor of record.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(desktop): Session Inspector omits generic-lane tool calls after live refresh [maka]

Posted by "yuzhiyang1 (via GitHub)" <gi...@apache.org>.
yuzhiyang1 commented on issue #5092:
URL: https://github.com/apache/maka/issues/5092#issuecomment-5600700335

   take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org