New chat: Chat or Agent chat, and how to link a computer
CI / check (push) Canceled after 0s

Agent chats were only reachable from the drawer, and with no linked computer a
new agent chat said one line. A new chat's page now starts with two cards on a
shared track, Chat and Agent chat, one line each, switching between the "new"
and "new-agent" routes. With no computer linked, Agent chat stays and shows the
web page's three steps (install the CLI, lembas login <this instance>, allow
remote work and start the service), each command in a code block with Copy,
and Check again (ChatActions.recheckDevices).

Screenshots: 01-new-chat (with the choice, small phone at 1.5x type too),
02-new-agent-chat-unlinked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 08:08:40 +00:00
1 parent 37cf778c44
commit 6ae5736ffd
17 files changed
+332 -33

No files matched your search

@@ -111,6 +111,9 @@ object Fakes {
draft = Draft(directory = "~/src/garden"),
)
/** A new agent chat with no computer linked: the steps to link one. */
val newAgentChatUnlinked = ChatState(models = models, instanceBase = "https://llm.example.org")
val transcript = ChatState(
chat = chat,
messages = listOf(question, answer, packing, packingAnswer),
@@ -60,12 +60,18 @@ private object NoSettingsActions : SettingsActions
class ScreenShots {
@Test
fun newChat() {
shoot("01-new-chat") { ChatContent(Fakes.newChat, NoChatActions, agent = false) }
shoot("01-new-chat", Phone.Small) { ChatContent(Fakes.newChat, NoChatActions, agent = false) }
shoot("01-new-chat") { ChatContent(Fakes.newChat, NoChatActions, agent = false, onKind = {}) }
shoot("01-new-chat", Phone.Small) { ChatContent(Fakes.newChat, NoChatActions, agent = false, onKind = {}) }
shoot("01-new-chat", Phone.Small, fontScale = 1.5f) { ChatContent(Fakes.newChat, NoChatActions, agent = false, onKind = {}) }
}
@Test
fun newAgentChat() = shoot("02-new-agent-chat") { ChatContent(Fakes.newAgentChat, NoChatActions, agent = true) }
fun newAgentChat() {
shoot("02-new-agent-chat") { ChatContent(Fakes.newAgentChat, NoChatActions, agent = true, onKind = {}) }
// No computer linked: Agent stays, and says how to link one.
shoot("02-new-agent-chat-unlinked") { ChatContent(Fakes.newAgentChatUnlinked, NoChatActions, agent = true, onKind = {}) }
shoot("02-new-agent-chat-unlinked", Phone.Small) { ChatContent(Fakes.newAgentChatUnlinked, NoChatActions, agent = true, onKind = {}) }
}
@Test
fun transcript() {