fix(trajectory): preserve wrapped pickup next action#5266
Merged
AceHack merged 1 commit intoMay 26, 2026
Conversation
Keep continuation lines attached to top-level trajectory metadata fields so wrapped next-action text remains visible in the generated execution prompt. Add focused coverage through readTrajectoryPackets for a wrapped Next concrete action field. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes trajectory metadata parsing in the Tier-1 autonomous trajectory pickup tool so that wrapped/continued lines for top-level fields (notably “Next concrete action”) are preserved instead of being dropped. This keeps multi-line next-action text intact when generating the execution prompt, and adds a focused regression test to lock the behavior in.
Changes:
- Extend field parsing to join “continuation” lines until a clear boundary (blank line, heading, bullet, table row, or next field-like line).
- Update
firstField(...)to use the continuation-aware field reader. - Add a filesystem-backed test that asserts
readTrajectoryPackets(...)preserves wrapped next-action text.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tools/trajectories/autonomous-pickup.ts | Adds continuation-aware metadata field parsing so wrapped “Next concrete action” text is preserved. |
| tools/trajectories/autonomous-pickup.test.ts | Adds a regression test verifying readTrajectoryPackets keeps wrapped next-action lines together. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
AceHack
added a commit
that referenced
this pull request
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Checks
Local gap
Claim: claim/codex-loop-backlog-next-action-continuation-20260526