Skip to content

Stop loading deprecated agent rules#57844

Merged
rtfeldman merged 2 commits into
mainfrom
remove-legacy-agent-rules-from-prompt
May 27, 2026
Merged

Stop loading deprecated agent rules#57844
rtfeldman merged 2 commits into
mainfrom
remove-legacy-agent-rules-from-prompt

Conversation

@MartinYe1234

@MartinYe1234 MartinYe1234 commented May 27, 2026

Copy link
Copy Markdown
Contributor

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.

@MartinYe1234 MartinYe1234 self-assigned this May 27, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 27, 2026
@MartinYe1234 MartinYe1234 requested a review from rtfeldman May 27, 2026 15:33
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label May 27, 2026
@MartinYe1234 MartinYe1234 removed the request for review from rtfeldman May 27, 2026 15:34
@MartinYe1234 MartinYe1234 marked this pull request as ready for review May 27, 2026 15:34
@rtfeldman rtfeldman added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit aa6062e May 27, 2026
33 checks passed
@rtfeldman rtfeldman deleted the remove-legacy-agent-rules-from-prompt branch May 27, 2026 16:24
@MartinYe1234

Copy link
Copy Markdown
Contributor Author

/cherry-pick preview

MartinYe1234 added a commit that referenced this pull request May 27, 2026
…#57851)

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.

Co-authored-by: MartinYe1234 <52641447+MartinYe1234@users.noreply.github.com>
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
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.
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