# Remove handoff feature flag and un-gate compaction \(\#58931\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/806f3f9322b89446f2f48c1768db02839d862d2d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 806f3f9322b89446f2f48c1768db02839d862d2d

Requested commit: 806f3f9322b89446f2f48c1768db02839d862d2d

Commit: 806f3f9322b89446f2f48c1768db02839d862d2d

Tree: e2999d706b82d4eb62746e63a9254f526ae654c7

Author: Richard Feldman

Committer: GitHub

## Message

```
Remove handoff feature flag and un-gate compaction (#58931)

Removes the `handoff` feature flag entirely and un-gates context
compaction so auto-compaction and the `/compact` command are available
to everyone. The `HandoffFeatureFlag` definition is deleted, and every
flag check is removed: auto-compaction always runs in the agent turn
loop (still governed by the `agent.auto_compact` setting and the model's
context window size), the `/compact` slash command is always registered
and routed to manual compaction, the token-limit callout always defers
to auto-compaction when the window is large enough, and the Auto Compact
settings always appear in the settings UI.

Merging this is the switch that ships the feature; until then it stays
stacked behind the telemetry and retry-fix PRs.

Release Notes:

- Added auto-compaction and /compact to Zed Agent

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

- [5c90b0664fe112bc7c788eeabda2c4240b722f94](https://git.cafe/gitcafe/zed/commit/5c90b0664fe112bc7c788eeabda2c4240b722f94?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/806f3f9322b89446f2f48c1768db02839d862d2d?format=markdown)
