Open History to see the last commit
1# Threads from older T3 Code versions
2
3When a server first starts with the current orchestration system, it brings its existing threads
4forward automatically. You do not need to run an import command.
5
6The migrated thread keeps its title, project, provider and model selection, permission and
7interaction modes, branch or worktree, archive state, settlement state, snooze and pin state, and
8linked pull request. T3 Code also brings over user and assistant messages, their timestamps, and
9supported attachments. Large histories may appear in stages while the server imports transcripts.
10
11The migration does not recreate the old provider's live session. It also does not convert old run
12records, checkpoints and diffs, tool activity, approval history, or proposed plan history into the
13new format. These items may be absent from a migrated timeline even though the conversation text is
14present.
15
16## Continuing a migrated thread
17
18The first new message starts a fresh provider session. T3 Code gives that session the newest part of
19the old user and assistant transcript, up to 32,000 characters. Earlier text remains visible in the
20thread, but the provider does not receive it automatically.
21
22Before continuing a long or important thread, read the recent transcript and include any older
23requirements the agent still needs in your next message. Starting a new thread and pasting a short
24handoff is also a good choice when the old conversation contains conflicting instructions.
25
26## Keeping a recovery copy
27
28T3 Code does not currently have a whole-thread export command. Before a major server update, stop
29the server and copy its `userdata` directory to a safe location. The default is
30`~/.t3/userdata`; a server started with `--home-dir <path>` uses `<path>/userdata`.
31
32If a migrated transcript is missing from the app, keep that copy unchanged. You can inspect the
33old transcript without starting a server against it:
34
35```sh
36sqlite3 -readonly /path/to/recovery-copy/state.sqlite
37```
38
39At the SQLite prompt, list recent legacy threads:
40
41```sql
42.headers on
43.mode tabs
44SELECT thread_id, title, updated_at
45FROM projection_threads
46ORDER BY updated_at DESC;
47```
48
49Then print one transcript, replacing `<thread-id>` with the value from the first query:
50
51```sql
52SELECT role, text, created_at
53FROM projection_thread_messages
54WHERE thread_id = '<thread-id>'
55 AND role IN ('user', 'assistant')
56ORDER BY created_at, message_id;
57```
58
59Open only the copied database. Do not edit it or point a newer or older server at your recovery
60copy. If the affected environment is remote, make and inspect the copy on the machine that runs
61that environment.