@qingqingdilaiP's OpenMausBot rows in Usage → Sessions (b507b5f69,
v0.1.4146) had a time, an id and ~\.openmausbot\messages.db#<id>, but no
Show conversation: HasTranscript left openmausbot out, so the row had no
transcript flag and /api/sessions/transcript, the Markdown export and the
Sessions filter refused it.
ombTranscript reads the conversation from messages.db (the listing's
path up to its last "#", the session's id as thread_id), on its own
read-only connection, in one read transaction, ordered by at and rowid
as the listing reads it:
- a user text is the person's message;
- a bot text, and an options card's words (MausBot's first message is
one), are the bot's;
- an activity of a turn's item (tool.itemId, as server/index.js writes
on item.started) is a tool_use with its input (else its summary, else
its name: the sample's agents_list_bots kept no input), and its output
a tool_result;
- an activity with no item (a notice, a queue or engine move, which
OpenMausBot adds itself) and a turn's digest, which repeats the reply,
aren't said.
Sibling check: Hermes and Alma, listed the same way (read-only database
rows, 5a4104632, dc3deaf09), have no Show conversation either, nor do
zcode, dsh, cline, grok, droid, workbuddy, workbuddy-ai, codebuddy and
antigravity. Filed as #6633; not changed here.
Tests (testdata/openmausbot, OpenMausBot 0.1.155's own data folder as
b507b5f69 recorded it):
- TestOpenMausBotTranscript: both conversations flagged in List and on
the Sessions page; Find + TranscriptOf as the GUI route does gives the
team thread's prompt, "Checking the team.", agents_list_bots, its
result, the reply, and the fruits thread's 4 texts with no digest;
WriteMarkdown and SearchSession read the same rows; messages.db's bytes
unchanged.
- TestOpenMausBotTranscriptToolsAndNotices: rows inserted in the shapes
OpenMausBot writes (item.started/completed with input and output, a
cloud-credit-moves notice): the tool shown with its arguments and
result, the notice not said.
Broken by hand, each red: openmausbot out of HasTranscript (no flag,
"can't be shown"); the itemId check removed (the notice said as a tool).
Run on mote: gofmt -l clean; go vet ./internal/sessions ./internal/gui,
GOOS=windows go vet ./internal/sessions, GOOS=linux go vet -tags nogui
./internal/sessions; go test -count=1 ./internal/sessions ./internal/gui
ok; node --test sessions-talk, sessions-talk-sheet, sessions-talk-model,
sessions-export, sessions-search (Chromium and WebKit, their languages
and widths): 54 of 54 pass (the GUI is unchanged: it shows the button
from the row's transcript flag). On Windows (xiaomi-gpu): go test -run
'OpenMausBot|Alma|Hermes' ./internal/sessions ok.
After a rebase onto 80a315a70 (no internal/sessions change; internal/gui's
cache change): on mica (mote over its cores), go vet and go test -count=1
./internal/sessions ./internal/gui ok, at the pushed tree.
Not tried: the live GUI against a real OpenMausBot on Windows (the
reporter's case); a conversation with images or cards other than options
(secret, signin, connector are left out); not the full ./... suite (the
change is inside internal/sessions, whose only callers here are
internal/gui's routes, both run).