t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Feat: Load existing Codex threads available via `codex resume`

Open flamboh opened this issue 8 months ago • 17 comments

It'd be nice to resume existing threads from pre-t3-code. Loading them all doesn't seem right, so I'd suggest an 'import thread' option when right clicking a project. Input a thread id or select from a list and it adds it.

"Add the ability to import existing Codex threads by thread id. This should be an option on the project right click drop down menu. Use a dialog to show an input for thread ID and a list of recent threads not in the sidebar already."

flamboh avatar Mar 07 '26 10:03 flamboh

Additionally, it would be great if I could import threads from the Codex app into T3 Code, rather than just resuming them. It feels counterintuitive to start from scratch when I already have an extensive conversation history.

timm-u avatar Mar 09 '26 06:03 timm-u

100% - this is crucial if I'm going to switch to T3 as my daily driver

siraht avatar Mar 09 '26 22:03 siraht

can't migrate to t3 without resume (too many existing sessions )

thorizer avatar Mar 20 '26 10:03 thorizer

I also would love to see this feature with claude code

tomocrafter avatar Apr 02 '26 09:04 tomocrafter

This app would pretty much be the only thing I ever use if I could resume my existing claude/codex sessions like I can in IDEs/console

dtown123 avatar Apr 24 '26 06:04 dtown123

I was initially working on just creating that implementation before starting to see other similar issues (such as this one) are already created and it seems like contribution is tightened (for obvious reasons previously outlined by Theo)

I think both providers persist sessions on disk in a stable location, as I reseached:

  • Claude Code: ~/.claude/projects/<encoded_cwd>/<uuid>.jsonl
  • Codex: ~/.codex/sessions/<YYYY>/<MM>/<DD>/<uuid>.jsonl

Sessions should also be project scoped.

regardless, both also expose native resume via claude --resume <id> and codex resume <id>. The data and the entry point already exist.

  • Layers/ProviderSessionDirectory.ts abstracts session storage on disk.
  • Layers/ProviderSessionReaper.ts manages session lifecycle.
  • Layers/ClaudeAdapter.ts and Layers/CodexAdapter.ts are the seams for each provider.

0xpaperhead avatar Apr 28 '26 10:04 0xpaperhead

I made it in my fork

Image

0xpaperhead avatar Apr 28 '26 11:04 0xpaperhead

I made it in my fork

Image

YES ALMOST THIS EXACTLY. That list should literally appear under the project folder in the side nav instead of the current managed chats. Right where it says "No threads yet"

dtown123 avatar Apr 29 '26 04:04 dtown123

yep! exactly my change. I tested it and it works. Gonna push to my fork soon.

Also I find myself reusing certain prompts so I am also adding a canned prompts feature

I made it in my fork Image

YES ALMOST THIS EXACTLY. That list should literally appear under the project folder in the side nav instead of the current managed chats. Right where it says "No threads yet"

0xpaperhead avatar Apr 29 '26 08:04 0xpaperhead

Please do! One my biggest problems with the current "AI meta" is "prompt hunting" where you remember something you did a few weeks ago, but you don't remember -where- you did it.

Was it codex? cursor? oh wait, maybe it was claude in the home directory?

I love the direction of T3 code, but I don't want it to become another disparate bucket that I have to check. I would prefer it to be the opposite; a one stop shop for any and all of your AI interactions no matter where they began.

dtown123 avatar Apr 29 '26 14:04 dtown123

yep exactly!! hunting for sessions and where you mentioned what!

I was thinking of adding semantic search across sessions. I like t3code

btw im the dev behind agentgrid.sh :

demo: https://www.tella.tv/video/organize-your-ai-coding-workflow-with-agent-grid-42t5

I even added a master-worker interface within agentgrid where you can talk to any of the workers but also let the orchestrator run your agentic engineering loop (build -> review -> audit -> loop -> PR ->etc...)

Image

0xpaperhead avatar Apr 30 '26 11:04 0xpaperhead

@dtown123 it works!

Image

0xpaperhead avatar Apr 30 '26 13:04 0xpaperhead

definitely needed also for claude code

materemias avatar May 09 '26 09:05 materemias

I took a stab at this, or at least what I thought I wanted. This era of development has made me more brave to attempt things I don't understand, and it seemed like a decent vehicle to fw electron. Well, I got it working.

  • All claude and codex "native" chats show up via toggle in the sidenav
  • You can continue them "natively" through a convoluted CLI spawn wrapper with native history maintained
  • "working" indicators
  • "T3 import" to shift it over to the "full ecosystem" and abandon the "native" session

After all of that, I reached the "polish" phase, and realized something. Yeah, it works, but what am I really gaining here? I get to run all my agents in a single spot, regardless of where I started them, but in a limited mode that will constantly have to be updated in parallel with the existing engine that's already superior.

My original problem was that I want to easily find old sessions, and I converted it in to some quest to have a "single source of truth" when I don't even care about that. I abandoned cursor 6 months ago, and I have scoured cursor for old prompts exactly zero times. That's when I realized I don't even care about old sessions, I just want to find the last one I was working on so I can continue a thought and keep working.

That brings me back to this issue request. I still think it's important, and importing actually seems mostly easy. I do think it should be coupled which some kind of "search" engine where T3 asks to look in your .claude folder (or codex or cursor) for existing chats to search and import.

Amazing job on the codebase T3 team - I learned a lot on this side quest and gained a new level of appreciation for this project. This feels like the next natural evolution in agent management.

dtown123 avatar May 10 '26 22:05 dtown123

Yeah, it's interesting. I made this issue very early into T3Code being public, but to be honest, I would have barely used this resuming atp. I still think it'd be great to add, but certainly not as relevant as I'd imagined (especially with how much worse long sessions on 5.5 are).

I think loading existing threads would be best as part of a "new user" flow, that's why I wanted it - to try doing something on a codex thread I'd been working on earlier in the day.

I think this issue request still applies, but differently than I imagined initially.

flamboh avatar May 14 '26 05:05 flamboh

This could be incredibly powerful too if the conversations being imported are "connected"

Such that you could start a conversation in Codex, continue it in T3 and then continue it again in Codex.

so if it so happens theres a specific ui feature, or you just wanna change flavors. you can.

beejsbj avatar Jun 02 '26 16:06 beejsbj

Closing as a duplicate of #207. Both request importing or resuming existing Codex sessions in T3 Code.

juliusmarminge avatar Jun 09 '26 22:06 juliusmarminge