Skip to content

Stop loading deprecated agent rules (#57844) (cherry-pick to preview)#57851

Merged
MartinYe1234 merged 1 commit into
v1.4.xfrom
cherry-pick-v1.4.x-aa6062ed
May 27, 2026
Merged

Stop loading deprecated agent rules (#57844) (cherry-pick to preview)#57851
MartinYe1234 merged 1 commit into
v1.4.xfrom
cherry-pick-v1.4.x-aa6062ed

Conversation

@zed-zippy

@zed-zippy zed-zippy Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #57844 to preview


Summary:

  • Stop loading persisted default Zed Rules into native agent project
    context.
  • Remove legacy user-rules rendering from agent system prompt templates.
  • Keep Skills and project rules file support unchanged.

Tests:

  • cargo test -p agent
    test_system_prompt_does_not_render_legacy_zed_rules_section --lib
  • cargo test -p prompt_store test_empty_skills_sets_has_skills_false
  • cargo test -p prompt_store
    test_project_context_does_not_filter_by_budget

Closes AI-325
Release Notes:

  • Fixed deprecated Rules being automatically included in new agent
    requests.

Summary:

- Stop loading persisted default Zed Rules into native agent project
context.
- Remove legacy user-rules rendering from agent system prompt templates.
- Keep Skills and project rules file support unchanged.

Tests:

- cargo test -p agent
test_system_prompt_does_not_render_legacy_zed_rules_section --lib
- cargo test -p prompt_store test_empty_skills_sets_has_skills_false
- cargo test -p prompt_store
test_project_context_does_not_filter_by_budget

Closes AI-325
Release Notes:

- Fixed deprecated Rules being automatically included in new agent
requests.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 27, 2026
@zed-community-bot zed-community-bot Bot added the bot Pull requests authored by a bot label May 27, 2026
@MartinYe1234 MartinYe1234 enabled auto-merge (squash) May 27, 2026 16:29
@MartinYe1234 MartinYe1234 merged commit 3965f71 into v1.4.x May 27, 2026
42 checks passed
@MartinYe1234 MartinYe1234 deleted the cherry-pick-v1.4.x-aa6062ed branch May 27, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant