Skip to content

fix(trajectory): preserve wrapped pickup next action#5266

Merged
AceHack merged 1 commit into
mainfrom
codex/codex-loop-backlog-next-action-continuation-20260526
May 26, 2026
Merged

fix(trajectory): preserve wrapped pickup next action#5266
AceHack merged 1 commit into
mainfrom
codex/codex-loop-backlog-next-action-continuation-20260526

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 26, 2026

Summary

  • preserve continuation lines for top-level trajectory metadata fields such as Next concrete action
  • add focused readTrajectoryPackets coverage for wrapped next-action text

Checks

  • bun test tools/trajectories/autonomous-pickup.test.ts
  • bunx prettier --check tools/trajectories/autonomous-pickup.ts tools/trajectories/autonomous-pickup.test.ts
  • git diff --check

Local gap

  • bun run typecheck could not run in this isolated worktree because tsc is not installed locally (script exited 127).

Claim: claim/codex-loop-backlog-next-action-continuation-20260526

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>
Copilot AI review requested due to automatic review settings May 26, 2026 18:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@AceHack AceHack marked this pull request as ready for review May 26, 2026 18:05
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@AceHack AceHack merged commit 24f9b86 into main May 26, 2026
53 checks passed
@AceHack AceHack deleted the codex/codex-loop-backlog-next-action-continuation-20260526 branch May 26, 2026 18:10
AceHack added a commit that referenced this pull request May 27, 2026
Co-authored-by: Lior <lior@zeta.dev>
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.

2 participants