Skip to content

Configure context compression per session #4132

Closed

Description

@ashubham

Is your feature request related to a problem? Please describe.

Currently, context compression is defined on an App level. So every session on that app will share the same compression config (including on/off).

I want to control whether compression is turned on/off on a per session bases, based on the user/other metadata.

Describe the solution you'd like

Maybe have a lifecycle callback on the App layer to configure these options. Something before_session_start.

Describe alternatives you've considered

Create my own compaction events, using after_agent callback.

Additional context

I am deploying using Vertex AI AgentEngine, so want to be aligned with the possibilities there.

Activity

  1. added
    core[Component] This issue is related to the core interface and implementation
    on Jan 13, 2026
  2. added theissue type on Jan 13, 2026
  3. VariableVic commented on Jan 14, 2026

    @VariableVic

    Did you get event compression to work at all on Agent Engine? As far as I know, it's not supported by the Vertex API: #3465

  4. wdai-chwy commented on Jan 26, 2026

    @wdai-chwy

    +1, hope we can config it per sub agent

  5. klateefa commented on Feb 11, 2026

    @klateefa

    @ashubham Thanks for the update. The request is currently being reviewed, and I will let you know if anything further is needed. Thank you for your understanding.

  6. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Feb 11, 2026
  7. a2105z commented on Oct 5, 2026

    @a2105z
    Contributor

    Withdrawing — I claimed this by mistake. Not working this issue.

  8. added a commit that references this issue on Oct 22, 2026
    9331638
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementationneeds review[Status] The PR/issue is awaiting review from the maintainer

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions