Built a test suite for T3 Code with e2e ⚡
@o_kwasniewski12K followers
22,988 views
27 Comments
Comments from the original post on X (Twitter)

@o_kwasniewski
it's using btw @jullerino - happy to create a PR with this!
22 likes

@theo
👀
20 likes

@o_kwasniewski
here's a PR:
9 likes

@rami__maalouf
the real question here is can my mac handle this
2 likes

@bhanu4417
I dont think you need that much complexity to get this bug like its there if you have used t3 code buddy !
1 like

@AdithyaLaakso
to be fair that bug is known to everyone who has used t3 for more than an hour or so but still super impressive
1 like

@parzival1l
@kacperkapusciak Took me, longer than it should have to understand. It’s a test suite for the T3 codebase, right?
1 like

@o_kwasniewski
@kacperkapusciak yes!
2 likes

@mo_tawfik89
A Stop button missing the 'turn is still starting' state is such a classic race. Nice catch. Mocking all six agents at the CLI level sounds like the right way to find these.
1 like

@ItsGoharr
40 tests written by AI that test nothing real
1 like

@catmanyau
CLI-level mocks are like a flight simulator: they let you test the stop button and other control paths without depending on a live agent run.

@hexablob
i'd worry about a late event from the cancelled turn landing in the next one. does the suite cover stop, restart, then the old startup finally completing?

@davidvornholt
Mocking at the CLI level is the part I'd watch: when Codex or Claude change their output format, the mocks keep passing while the real integration breaks. Do you re-record the fixtures from the real CLIs on a schedule?

@magisterialGOAT
How can i contribute to this project?

@o_kwasniewski
we're accepting pull requests on GitHub:

@magisterialGOAT
Thanks

@MrBrjan
catching bugs like that is key for smoother interactions, great job!

@deeponailabs
Does stop need a turn id before it can cancel?

@theoakatheo
how do you mock them at the cli level, recorded output replayed by a fake binary? i'd guess the painful part is keeping those fixtures in sync each time one of the six changes its output format

@iPuneetSingh
That bug class shows up in every harness. Tests cover idle and running, but "starting" is its own state and Stop has to mean something there too. Mocking at the CLI level is a nice way to hit those in-between states on purpose.







