Skip to content

Support complete large files as context in Agent panel (manual override the 16KB limit) #30340

@vlebert

Description

@vlebert

Summary

Adding files as context in not effective for models without tools support.

Description

Since the latest update, when adding a file to the AI agent's context, the system now includes only the list of functions/symbols found in the file rather than the full file content. While this works well for models supporting tool calls (which can fetch the full file as needed), it creates limitations for models that do not support tool calling.

Actual Behavior:

  • Files added to the AI agent's context are summarized as symbols/functions.
  • Models without tool calling support cannot retrieve the full file content, leading to incomplete context.

You can check the actual context by clicking "open thread as markdown".

Image

Expected Behavior:

  1. Option 1: For models without tool calling support, default to including the full file content in the context (similar to the Text Thread functionality).
  2. Option 2: Provide a user-friendly way to explicitly control what is included in the context (e.g., toggle between "symbols only" and "full file").

Zed Version and System Specs

Zed: v0.185.13 (Zed)
OS: macOS 15.4.1
Memory: 32 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    aiImprovement related to Assistant, Copilot, or other AI features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions