Skip to content

agent: Fix handoff feature flag tests - #58916

Merged
bennetbo merged 1 commit into
mainfrom
fix-handoff-feature-flag-tests
Jun 9, 2026
Merged

agent: Fix handoff feature flag tests#58916
bennetbo merged 1 commit into
mainfrom
fix-handoff-feature-flag-tests

Conversation

@bennetbo

@bennetbo bennetbo commented Jun 9, 2026

Copy link
Copy Markdown
Member

Accidentally broke CI in #58891

Since

if (cfg!(debug_assertions) || self.staff) && !*ZED_DISABLE_STAFF && T::enabled_for_staff() {

defaults to true in debug mode (effectively sets staff to true) the tests would fail.

We can work around this by manually disabling the feature flag for tests in settings.

Also, since we are planning to ship to preview tomorrow these tests will be removed soon.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 9, 2026
@bennetbo
bennetbo requested a review from rtfeldman June 9, 2026 12:06
@bennetbo
bennetbo enabled auto-merge June 9, 2026 12:06
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 9, 2026
@bennetbo
bennetbo added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit d24b14a Jun 9, 2026
43 checks passed
@bennetbo
bennetbo deleted the fix-handoff-feature-flag-tests branch June 9, 2026 12:19
@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label Jun 9, 2026
@rtfeldman

Copy link
Copy Markdown
Contributor

@zed-industries/approved

@zed-zippy zed-zippy Bot removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label Jun 9, 2026
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Accidentally broke CI in zed-industries#58891

Since
https://github.com/zed-industries/zed/blob/c68bc98bacb80c34df0e1b6ef4de186d763b3820/crates/feature_flags/src/store.rs#L180
defaults to true in debug mode (effectively sets staff to `true`) the
tests would fail.

We can work around this by manually disabling the feature flag for tests
in settings.

Also, since we are planning to ship to preview tomorrow these tests will
be removed soon.


Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Accidentally broke CI in zed-industries#58891

Since
https://github.com/zed-industries/zed/blob/c68bc98bacb80c34df0e1b6ef4de186d763b3820/crates/feature_flags/src/store.rs#L180
defaults to true in debug mode (effectively sets staff to `true`) the
tests would fail.

We can work around this by manually disabling the feature flag for tests
in settings.

Also, since we are planning to ship to preview tomorrow these tests will
be removed soon.


Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants