fix(goal-mode): enqueue passive turn context - #78
Open
letta-integration[bot] wants to merge 1 commit into
Open
Conversation
Overlord (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Route goal reminders through the typed turn queue so approval continuations retain protocol ownership and ordering. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
letta-integration
Bot
requested review from
carenthomas and
cpacker
as code owners
August 9, 2026 20:33
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
Migrate goal reminders from raw turn-start input prepending to the passive queued-context API added by letta-ai/letta-code#3773.
Before, goal mode inserted a user message at the front of the finalized turn input. On a turn carrying an approval continuation plus queued task notifications, that displaced the approval from index 0 and Core rejected the request with
PENDING_APPROVAL.After, goal mode contributes a typed passive context item. Letta Code owns composition and keeps the order
approval -> goal context -> queued messages.Compatibility
@letta-ai/goal-modeto 0.1.1 for publication.Validation
npm run validategit diff --checkBoth passed.