Skip to content

fix(codex): clear existing goal before /goal replacement - #472

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/warm-kestrel-8fb1a41b
Aug 3, 2026
Merged

fix(codex): clear existing goal before /goal replacement#472
SDSLeon merged 1 commit into
masterfrom
poracode/warm-kestrel-8fb1a41b

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 3, 2026

Copy link
Copy Markdown
Owner
  • Clear an existing goal before applying a new /goal replacement so a previous objective doesn't linger or conflict, keeping the active goal consistent.
  • Make goal edit act directly via thread/goal/set with an active status instead of routing through the generic dispatch path.
  • Add a test covering the clear-then-set request sequence for /goal <objective> replacement.

When Codex /goal replaces an active goal, clear it via thread/goal/clear
before setting the new objective to avoid stale goal state, and set the
new goal directly in controlGoal edit path instead of dispatching.

- clear stale goal before thread/goal/set on replacement
- bypass dispatch for controlGoal edit and set status active
- add test covering goal replacement request sequence
@SDSLeon
SDSLeon merged commit e31df66 into master Aug 3, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/warm-kestrel-8fb1a41b branch August 3, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant