Chat info: Session section with native id, resume command and export
The chat information sheet gains a Session section: the harness's native session id (copy), harness, directory, a verified resume command (copy) and Export conversation (Markdown), Export JSON and, for Claude Code, Export native session (the JSONL transcript). Server: chat_sessions rows carry resume_command and native_export; new chat_export command builds Markdown/JSON from the same paged history chat_messages serves (bounded at 8 MiB), refuses non-operator sessions. App: exports go through the artifact file bridge (web download, share sheet on phones).
This commit is contained in:
@@ -294,6 +294,31 @@ pipelines chat-adopt <session-id> [--harness opencode|claude|codex] [--title TEX
|
||||
Without `--harness`, each available harness is asked. Stop using the session
|
||||
elsewhere once you continue it in Pipelines.
|
||||
|
||||
## Continuing or exporting a chat
|
||||
|
||||
A chat's id is the harness's own session id (Claude Code session UUID, Codex
|
||||
thread id, OpenCode `ses_…`). The app's chat information sheet shows it with
|
||||
the harness and directory, and copies a command that continues the session in
|
||||
a terminal on the server machine:
|
||||
|
||||
| Harness | Resume command |
|
||||
| --- | --- |
|
||||
| Claude Code | `cd <dir> && claude --resume <id>` |
|
||||
| Codex | `cd <dir> && codex resume <id>` |
|
||||
| OpenCode | `cd <dir> && opencode --session <id>` |
|
||||
|
||||
Each `chat_sessions` row carries this as `resume_command`. Stop the turn in
|
||||
Pipelines before continuing the session elsewhere.
|
||||
|
||||
`chat_export` (`{"chat_export": {"session_id", "format"}}`) returns
|
||||
`chat_export_file` (`name`, `mime`, `content`, `messages`, `truncated`):
|
||||
`markdown` is a transcript of user and assistant messages and agent reports
|
||||
with timestamps and one line per tool call; `json` is the same as data.
|
||||
Reasoning and full tool output are left out, and an export is bounded at
|
||||
8 MiB (older pages are dropped and `truncated` is set). `native` returns
|
||||
Claude Code's own JSONL transcript, offered when a row has `native_export`.
|
||||
Only operator chats are exported.
|
||||
|
||||
## Limits
|
||||
|
||||
- Stage session exports: the native session read is capped at 8 MiB and the
|
||||
|
||||
Reference in New Issue
Block a user