mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4770] [Feature]: Show tool error output in Professor Mari's workspace chat #2626
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2626
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xDanteMD on GitHub (Aug 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4770
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
When Professor Mari executes workspace commands (app_data, docs_search, read, etc.), the chat UI shows a compact status badge via the
WorkspaceToolEventcomponent — "TOOL app data · Searching characters" or "FILE Reading file · config.json". On success, this is sufficient: the model's next message summarizes the result.On error, however, the user gets a red badge with a "needs attention" label but no error detail. The
WorkspaceToolCall.outputfield contains the error message, butWorkspaceToolEventnever renders it. The user sees that something failed but has no idea what failed or why. They can't troubleshoot, and they can't tell the model what went wrong.This is the workspace-mode equivalent of the silent-drop problem: the model knows the tool failed, but the user doesn't get the information they need to act on it.
Proposed solution
Auto-expand the tool output on error so users can see what went wrong:
WorkspaceToolEvent)WorkspaceToolCall.outputfield is already populated bytool_endevents (workspace-agent.service.ts:2278) — this is purely a rendering changeAlternatives considered
Additional context
WorkspaceToolEventcomponent (HomeProfessorMariChat.tsx:1361-1401) already has error styling and a "needs attention" indicator. The error output display fits naturally into this existing structure.WorkspaceToolCall.outputfield (line 423) isstring | null— populated on both success and error viatool_endevents. On error, it contains the error message.Research undertaken: codebase analysis of
workspace-agent.service.ts(tool_start/tool_end event emission, tool_end error path at line 2278),HomeProfessorMariChat.tsx(WorkspaceToolEvent component at lines 1361-1401, WorkspaceToolCall type at line 417, error styling at lines 1384-1386),HomeProfessorMariChat.tsx(SSE event handling for tool_start/tool_end),use-generate.ts(SSE event handling for assistant_action). Confirmed that WorkspaceToolCall.output is populated on error but never rendered. Verified that assistant_action is a separate conversation-mode concern (toast notifications), not a tool execution display issue.