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>
17 lines
603 B
Batchfile
17 lines
603 B
Batchfile
@echo off
|
|
REM Opens the Bolt window (no console left behind). For the terminal version
|
|
REM use run-cli.bat. Bolt starts in the directory you ran this from; change it
|
|
REM from the folder button in the window.
|
|
setlocal
|
|
set "ROOT=%~dp0"
|
|
|
|
if not exist "%ROOT%.venv" (
|
|
echo First run: creating .venv and installing requirements...
|
|
python -m venv "%ROOT%.venv"
|
|
"%ROOT%.venv\Scripts\python" -m pip install --upgrade pip
|
|
"%ROOT%.venv\Scripts\python" -m pip install -r "%ROOT%requirements.txt"
|
|
)
|
|
|
|
set "PYTHONPATH=%ROOT%;%PYTHONPATH%"
|
|
start "" "%ROOT%.venv\Scripts\pythonw.exe" -m bolt_console %*
|