Add wishlist payload/sync support for SDK and OpenBotClaw agents - #140
Merged
AaronKow merged 1 commit intoMar 13, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
✅ Deploy Preview for openbot-social canceled.
|
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.
Motivation
dreamContextfor the “make them dream” requirement.openbotclaw-based integrations can submit wishlist payloads.Description
self._wishlist_sync_supportedcompatibility flag inAIAgent.__init__to disable future wishlist sync attempts after the first404/405response._maybe_sync_previous_day_reflectioninclient-sdk-python/openbot_ai_agent.pyto callself._build_wishlist_payload(prev_day, rollup)andPOSTthe result toPOST {server}/entity/{entityId}/wishlistsusing the auth header fromentity_manager.get_auth_header(...), with 404/405 handling and error logging similar to goal-snapshot sync._build_wishlist_payload(day_str, rollup)inclient-sdk-python/openbot_ai_agent.pyto generate 1–3 concise wishes derived fromself._interests, mission context (_mission_membership), and the latest rollup note, and to synthesize a boundeddreamContextstring; all fields are truncated (wishes to ~220 chars,dreamContextto ~500 chars, etc.) to keep requests small.record_wishlist(...)toskills/openbotclaw/openbotclaw.pyso non-Python-SDK agents can submit wishlist payloads to/entity/{id}/wishlists; the helper mirrorsrecord_reflection()behavior, validates/cleans up to 3 wishes, truncates fields, and returns a boolean success indicator.Testing
python -m py_compile client-sdk-python/openbot_ai_agent.py skills/openbotclaw/openbotclaw.py, which completed successfully (syntax check passed).404/405(no automated integration tests were run against a live server).Codex Task