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
fix(ui): resolve user collaboration tool reliability and duplicate messages
User collaboration (send button) fixes:
- Replace HTTP POST roundtrip with direct in-process call to
UserCollaborationTool.submitUserResponse(). Eliminates network stack,
Vapor server dependency, @mainactor contention, and auth middleware
as failure points when submitting collaboration responses.
- Fix Send button disabled during collaboration: shouldDisableInput
(for unloaded local models) was overriding isAwaitingUserInput,
making the button appear active but swallow taps.
- Add diagnostic logging for missing toolCallId/conversationId.
Duplicate message fix:
- The observeUserInputRequired handler in AgentOrchestrator was
emitting the collaboration prompt three ways: persisted via
messageBus, yielded as a streaming chunk, and again when ChatWidget
parsed the SSE event. Remove the first two - ChatWidget's
parseSSEEvent is the single source for adding the prompt message.
Also eliminates the 'SUCCESS: User Collaboration:' prefix leak.
CI/CD updates:
- actions/checkout v4 -> v6
- actions/github-script v7 -> v8
- ubuntu-latest -> ubuntu-24.04 (pinned)
Cleanup:
- Remove unused math_operations icon case from UniversalToolRegistry
- Disambiguate CodeBlock -> Markdown.CodeBlock in MarkdownASTRenderer
- Fix unused variable warnings (var -> let, named -> wildcard bindings)
- Remove unnecessary nonisolated(unsafe) from static let properties
- Add .build-xcode/ and .build-ios/ to .gitignore
0 commit comments