feat(app): add a tool-call construction indicator #343
No reviewers
Labels
No labels
Epic 5
MCP
P1
PR-0
PR-1
api
api-layer
architecture
area:backend
area:frontend
arrow
authentication
backend
bug
chat
client
clipboard
common-module
compose
cross-cutting
cross-cutting-requirement
data-layer
data-models
database
desktop-client
documentation
duplicate
enhancement
epic
epic-1
epic-2
epic-3
epic-4
epic-5
epic-6
epic-7
epic-llm-config
error-handling
feature
frontend
good first issue
help wanted
implementation
infrastructure
installer
invalid
kotlin
ktor
llm
medium-priority
message
multiplatform
needs-review
needs-triage
packaging
performance
phase-1
phase-2
phase-3
phase-4
phase-5
phase3
phase:3
priority: high
question
refactor
refactoring
resource-sharing
security
server
server-module
services
session
session-management
settings
setup
shutdown
state
storage
streaming
sub-issue
tests
tooling
type:task
ui
ui/ux
user-accounts
user-management
ux
viewmodel
websocket
windows
windows-integration
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Torvian.eu/chatbot!343
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/app-tool-call-construction-indicator"
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?
Summary
Shows a "Writing tool calls…" label inside an assistant message while the model is still streaming a tool call, so the message no longer looks idle between the first delta and the arrival of the complete calls. The change is client-only and adds no server, worker, or protocol surface.
Changes
ChatState, cleared when the calls arrive complete, when the message or turn ends, when the stream errors, and on state reset.tool_call_construction_indicatorstring resource.ToolCallDeltais deliberately not cached by the session repository, since only the complete call set is displayable.Implementation notes
TurnExecutionState.RUNNINGandresetStatediscard it so a reused session slot cannot show a stale label.Validation
./gradlew :app:desktopMainClasses :app:desktopTestClasses— success./gradlew :app:desktopTest— 1071 tests, 0 failures, 2 pre-existing skips./gradlew :app:compileKotlinWasmJs— successRisks and follow-up