zed/crates/edit_prediction
Marshall Bowers 9cd14daad7
Some checks are pending
Congratsbot / check-author (push) Waiting to run
Congratsbot / congrats (push) Blocked by required conditions
deploy_nightly_docs / deploy_docs (push) Waiting to run
run_tests / check_remote_server_linux_x86_64 (push) Blocked by required conditions
run_tests / orchestrate (push) Waiting to run
run_tests / check_style (push) Waiting to run
run_tests / clippy_windows (push) Blocked by required conditions
run_tests / clippy_linux (push) Blocked by required conditions
run_tests / clippy_mac (push) Blocked by required conditions
run_tests / clippy_mac_x86_64 (push) Blocked by required conditions
run_tests / run_tests_windows (push) Blocked by required conditions
run_tests / run_tests_linux (push) Blocked by required conditions
run_tests / run_tests_mac (push) Blocked by required conditions
run_tests / miri_scheduler (push) Blocked by required conditions
run_tests / doctests (push) Blocked by required conditions
run_tests / check_workspace_binaries (push) Blocked by required conditions
run_tests / check_wasm (push) Blocked by required conditions
run_tests / check_dependencies (push) Blocked by required conditions
run_tests / check_docs (push) Blocked by required conditions
run_tests / check_licenses (push) Blocked by required conditions
run_tests / check_scripts (push) Blocked by required conditions
run_tests / check_remote_server_mac_aarch64 (push) Blocked by required conditions
run_tests / check_remote_server_windows_x86_64 (push) Blocked by required conditions
run_tests / check_postgres_and_protobuf_migrations (push) Blocked by required conditions
run_tests / extension_tests (push) Blocked by required conditions
run_tests / tests_pass (push) Blocked by required conditions
Require organization ID when submitting feedback to Cloud (#65839)
<!-- Your description goes here. -->

---

> [!NOTE]
> Everything below this line is commentary from Claude.

This PR makes `organization_id` required on the feedback request bodies
sent to Cloud:

- `SubmitAgentThreadFeedbackBody`
- `SubmitAgentThreadFeedbackCommentsBody`
- `SubmitEditPredictionFeedbackBody`

Previously these were `Option<OrganizationId>` and would serialize as
`null` when no organization was selected (e.g., before
`/client/users/me` resolved, or when the user has no organizations).

The agent thread rating, agent thread comments, and edit prediction
rating paths now return an error (`no organization selected`) if there
is no current organization, instead of submitting without one. These
errors are surfaced through the existing `detach_and_log_err`.

Note that local feedback state (the rated/selected state and the
comments editor) is still updated before the submission task runs,
consistent with how other failures on these paths behave.

Release Notes:

- N/A

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:06:13 +00:00
..
benches gpui: Add bench_metrics for multi-metric Criterion benchmarks (#64753) 2026-09-27 17:37:29 +00:00
license_examples Reorganize edit prediction code and remove old experiments (#44187) 2025-12-04 15:56:57 -08:00
license_patterns Reorganize edit prediction code and remove old experiments (#44187) 2025-12-04 15:56:57 -08:00
src Require organization ID when submitting feedback to Cloud (#65839) 2026-10-19 18:06:13 +00:00
Cargo.toml Reduce the dependency footprint (#65176) 2026-10-05 12:44:26 +00:00
LICENSE-GPL