+36
![github-actions[bot]](/assets/img/avatar_default.png)








Julius Marminge
maria-rcks
Bilal Bakr
shivam
Vitalii Yehorov
Jake Leventhal
Claude Opus 5
Alex Southwell
github-actions[bot]
Nicholas Wasmiller
PB
Exotic
Yash Singh
Devin
Theo Browne
Gabriel De Andrade
Dara Adedeji
scratchyone
Dominic Roy
chukfinley
Primož Ajdišek
benthecarman
NaveDanan
aaditagrawal
Aditya Garud
Nick Anisimov
MacKinley Smith
Yordis Prieto
t3-code[bot]
AKolenda
Guillermo Casanova
Otavio Salvador
Shirish Pothi
Ishaan Kothari
Bob Fowler
Anton Bezdenezhnykh
ValeraZSD
Ephraim
Ryan Ilano
Alex
maco
Cursor
Tristan Knight
PR Batch Tester
oliver
kamkm
de34391427
Co-authored-by: maria-rcks <[email protected]> Co-authored-by: Bilal Bakr <[email protected]> Co-authored-by: shivam <[email protected]> Co-authored-by: Vitalii Yehorov <[email protected]> Co-authored-by: Jake Leventhal <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Alex Southwell <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nicholas Wasmiller <[email protected]> Co-authored-by: PB <[email protected]> Co-authored-by: Exotic <[email protected]> Co-authored-by: Yash Singh <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Theo Browne <[email protected]> Co-authored-by: Gabriel De Andrade <[email protected]> Co-authored-by: Dara Adedeji <[email protected]> Co-authored-by: scratchyone <[email protected]> Co-authored-by: Dominic Roy <[email protected]> Co-authored-by: chukfinley <[email protected]> Co-authored-by: Primož Ajdišek <[email protected]> Co-authored-by: benthecarman <[email protected]> Co-authored-by: NaveDanan <[email protected]> Co-authored-by: aaditagrawal <[email protected]> Co-authored-by: Aditya Garud <[email protected]> Co-authored-by: Nick Anisimov <[email protected]> Co-authored-by: MacKinley Smith <[email protected]> Co-authored-by: Yordis Prieto <[email protected]> Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: AKolenda <[email protected]> Co-authored-by: Guillermo Casanova <[email protected]> Co-authored-by: Otavio Salvador <[email protected]> Co-authored-by: Shirish Pothi <[email protected]> Co-authored-by: Ishaan Kothari <[email protected]> Co-authored-by: Bob Fowler <[email protected]> Co-authored-by: Anton Bezdenezhnykh <[email protected]> Co-authored-by: ValeraZSD <[email protected]> Co-authored-by: Ephraim <[email protected]> Co-authored-by: Ryan Ilano <[email protected]> Co-authored-by: Alex <[email protected]> Co-authored-by: maco <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Tristan Knight <[email protected]> Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: oliver <[email protected]> Co-authored-by: kamkm <[email protected]> Signed-off-by: Yordis Prieto <[email protected]>
73 lines
3.3 KiB
Markdown
73 lines
3.3 KiB
Markdown
# Threads from older T3 Code versions
|
|
|
|
On your first V2 launch, T3 Code copies the V1 database, `state.sqlite`, into `statev2.sqlite`
|
|
in the same data directory and migrates the copy. Your threads appear automatically, with full
|
|
transcripts imported as needed. You do not need to run an import command.
|
|
|
|
V1 continues using its original database while V2 uses the copy. The database import can run while
|
|
V1 is open. Opening V2 again resumes your V2 history. The copy happens only once: later conversations
|
|
and changes in either version do not sync to the other. Settings, attachments, and workspace files
|
|
remain shared.
|
|
|
|
The V2 desktop app uses a separate browser profile, so browser cookies and caches do not carry
|
|
over from V1. You may need to sign in again to websites opened inside the app.
|
|
|
|
The migrated thread keeps its title, project, provider and model selection, permission and
|
|
interaction modes, branch or worktree, archive state, settlement state, snooze and pin state, and
|
|
linked pull request. T3 Code also brings over user and assistant messages, their timestamps, and
|
|
supported attachments. Large histories may appear in stages while the server imports transcripts.
|
|
|
|
The migration does not recreate the old provider's live session. It also does not convert old run
|
|
records, checkpoints and diffs, tool activity, approval history, or proposed plan history into the
|
|
new format. These items may be absent from a migrated timeline even though the conversation text is
|
|
present.
|
|
|
|
## Continuing a migrated thread
|
|
|
|
The first new message starts a fresh provider session. T3 Code selects intact user and assistant
|
|
messages using the same [handoff budget](./portable-handoffs.md) as a provider switch. Omitted text
|
|
remains in the thread and can be retrieved by the agent. The migration retains its separate
|
|
32,000-character recovery excerpt; neither that excerpt nor the handoff replaces the full imported
|
|
transcript.
|
|
|
|
Before continuing a long or important thread, read the recent transcript and include any older
|
|
requirements the agent still needs in your next message. Starting a new thread and pasting a short
|
|
handoff is also a good choice when the old conversation contains conflicting instructions.
|
|
|
|
## Keeping a recovery copy
|
|
|
|
T3 Code does not currently have a whole-thread export command. Before a major server update, stop
|
|
the server and copy its `userdata` directory to a safe location. The default is
|
|
`~/.t3/userdata`; a server started with `--home-dir <path>` uses `<path>/userdata`.
|
|
|
|
If a migrated transcript is missing from the app, keep that copy unchanged. You can inspect the
|
|
old transcript without starting a server against it:
|
|
|
|
```sh
|
|
sqlite3 -readonly /path/to/recovery-copy/state.sqlite
|
|
```
|
|
|
|
At the SQLite prompt, list recent legacy threads:
|
|
|
|
```sql
|
|
.headers on
|
|
.mode tabs
|
|
SELECT thread_id, title, updated_at
|
|
FROM projection_threads
|
|
ORDER BY updated_at DESC;
|
|
```
|
|
|
|
Then print one transcript, replacing `<thread-id>` with the value from the first query:
|
|
|
|
```sql
|
|
SELECT role, text, created_at
|
|
FROM projection_thread_messages
|
|
WHERE thread_id = '<thread-id>'
|
|
AND role IN ('user', 'assistant')
|
|
ORDER BY created_at, message_id;
|
|
```
|
|
|
|
Open only the copied database. Do not edit it or point a newer or older server at your recovery
|
|
copy. If the affected environment is remote, make and inspect the copy on the machine that runs
|
|
that environment.
|