Add a chat list and server-minted new chats on top of the desk API's
GET/POST /desk/chats:
- server_client.list_chats() / create_chat(), same shape and error
handling as list_outbox_files().
- Switching is config.set_session(id): a plain reassignment of the
SESSION_ID every call reads, persisted to session.json. The window
refuses to switch mid-turn rather than locking.
- gui/chat_list_window.py: a Chats dialog (Ctrl+K) with a QListWidget,
populated on open, with Refresh and New Chat. Network calls run as
QRunnables on the global QThreadPool and come back through Signals,
never from a slot. The header New chat (Ctrl+N) uses the same path.
- Switching clears the local transcript; there is no endpoint for a
past chat's messages. Bolt's memory is per user, so it carries over.
- Terminal: /chats, /chat <n|id>, and /new (server-minted id, local
fallback).
This commit also carries the uncommitted work since 54030a7 that turned
this Bolt-Pet fork into Bolt Console: the pet, wake word, TTS and screen
features removed; a Claude Code-style terminal client; the PySide6
window with tool cards, approvals and diffs; mic dictation through the
server's /desk/stt relay; filectl/JSON repairs; and detection of
invented tool results.
Build output (build/, dist/, Release/, *.spec) is now ignored.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
16 lines
571 B
Bash
Executable File
16 lines
571 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Launcher for macOS/Linux: the window by default, ./run.sh --cli for the
|
|
# terminal version. Starts in the directory you ran it from, so that is
|
|
# the working directory Bolt's commands and relative paths use.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
if [ ! -d "$ROOT/.venv" ]; then
|
|
python3 -m venv "$ROOT/.venv"
|
|
"$ROOT/.venv/bin/pip" install --upgrade pip
|
|
"$ROOT/.venv/bin/pip" install -r "$ROOT/requirements.txt"
|
|
fi
|
|
|
|
export PYTHONPATH="$ROOT${PYTHONPATH:+:$PYTHONPATH}"
|
|
exec "$ROOT/.venv/bin/python" -m bolt_console "$@"
|