aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tools
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 12:47:00 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 12:47:00 +0200
commit061d20724bb7b1ca271d5a4dd03733bd9d3c8377 (patch)
treedc264d684b5758c03eed8a35498152ce2e4b0c17 /examples/tools
parenteb0f3b598cfed68cdf93036ce2607205e1323124 (diff)
downloaddesktop-assistant-061d20724bb7b1ca271d5a4dd03733bd9d3c8377.tar.gz
desktop-assistant-061d20724bb7b1ca271d5a4dd03733bd9d3c8377.zip
Take questions on the socket and stream replies back
Each client gets a reader thread; commands are ask, stop, new, list, open, search and delete. A reply streams think, token and tool events through say(), which checks the turn counter under the same lock that stop takes, so a stopped reply cannot send a token after its done. A finished turn is saved; a stopped one is not. hello carries the current conversation and any reply in flight, so a reconnecting canvas redraws both. Errors from llama-server become an error event and the daemon stays up; every exit path of main() logs a line, which the voice version's silent death lacked. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools')
0 files changed, 0 insertions, 0 deletions