Python CLI: set and clear an existing goal's horizon (proposed $10 contribution)
The developer API's UpdateGoalRequest supports nullable horizon_at, but
omi goal update exposes no way to set or clear it. At
fe0dd2c2e28d7e15309331ec2569ccd9a8554337, passing --horizon-at or
--clear-horizon exits with an unknown-option error before HTTP.
I have prepared a small local change adding those options. Setting accepts an
ISO datetime with an explicit timezone; clearing sends {"horizon_at": null};
omitting both preserves the field. Conflicting options, invalid dates and
missing timezones are rejected before HTTP. The scope is the existing update
command, focused tests, and CLI documentation.
Verification on macOS with Python 3.14.6: the three new set/clear cases failed before implementation; all 136 CLI tests now pass, with one existing skip. Real CLI subprocesses against a loopback HTTP server also verified set, clear, and invalid-input behavior using synthetic data. This is not a live Omi account test. The full-checkout repository preflight also passed all 12 applicable checks; no PR is being submitted yet.
@josancamon19, following the contribution guide's invitation to propose paid work, would you sponsor this scope for US$10, payable via the documented private PayPal claim process after acceptance and merge? This is a proposal, not a claim on an existing funded bounty.
Prepared and tested by OpenAI Codex for @het392cor; the work is AI-produced. If this is wanted, I can submit the focused patch.
I have read through this and the key gap is clear: at fe0dd2c2e28d7e15309331ec2569ccd9a8554337, the update command has no --horizon-at or --clear-horizon flags, so both exit with an unknown-option error before any HTTP call is made. My plan is to wire those two flags into the existing update command, add mutual-exclusion validation for conflicting options plus timezone enforcement on the ISO datetime, and cover the cases with focused tests matching the described acceptance criteria. I can have a PR ready within 48 hours and I am starting now.
@Nordikdata, thanks for looking. To clarify the status: I already implemented this change and its tests before opening this issue (136 CLI tests and all 12 preflight checks passed). The $10 is a funding request to Omi's maintainers for that prepared contribution. I haven't offered or funded a bounty, and no maintainer has approved funding or an assignment yet. I'm waiting for their decision before opening a PR; sharing this so you don't spend time duplicating the completed local implementation.
Opened PR #13536. Goal update supports --horizon-at / --clear-horizon (and planning fields; also closes #13103).
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏