Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): Codex /goal resume tracks the goal turn Codex already started
#35440
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/35440/head
·
opened
3 weeks ago
View on GitHub
Conversation
8
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
126 additions
and
10 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
66 additions and 0 deletions
+66
-0
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
View file
Expand up
Show all 9,594 lines
@@ -9595,6 +9595,72 @@
9595
9595
),
9596
9596
);
9597
9597
9598
+
it.
effect
(
"/goal resume tracks the goal turn Codex already started"
, () =>
9599
+
Effect
.
gen
(
function
* () {
9600
+
const
requests:
string
[] = [];
9601
+
const
transcript =
makeCodexReplayTranscript
({
9602
+
scenario
:
"goal-resume-running"
,
9603
+
entries
: [
9604
+
...sessionStart,
9605
+
// Codex restores an active goal on thread/resume and starts its turn on its own.
9606
+
notification
(
"goal restored"
,
"thread/goal/updated"
, {
9607
+
threadId
: nativeThreadId,
9608
+
goal
:
codexGoal
(
"active"
,
0
),
9609
+
}),
9610
+
notification
(
"native goal turn"
,
"turn/started"
, {
9611
+
threadId
: nativeThreadId,
9612
+
turn
:
makeCodexReplayTurn
({
id
:
"native-goal-turn"
,
status
:
"inProgress"
}),
9613
+
}),
9614
+
...request(
9615
+
3
,
9616
+
"thread/goal/get"
,
9617
+
{
threadId
: nativeThreadId },
9618
+
{
goal
:
codexGoal
(
"active"
,
0
) },
9619
+
),
9620
+
notification
(
"goal complete"
,
"thread/goal/updated"
, {
9621
+
threadId
: nativeThreadId,
9622
+
turnId
:
"native-goal-turn"
,
9623
+
goal
:
codexGoal
(
"complete"
,
10
),
Home
Search
Explore
Menu