Skip to content

Send context (skills, env) with /compact summarization requests#10274

Merged
cephalonaut merged 1 commit into
masterfrom
matthew/compact-sends-context
May 6, 2026
Merged

Send context (skills, env) with /compact summarization requests#10274
cephalonaut merged 1 commit into
masterfrom
matthew/compact-sends-context

Conversation

@cephalonaut
Copy link
Copy Markdown
Contributor

Description

The SummarizeConversation input variant did not carry AIAgentContext, so /compact requests were sent to the server with context: None. This meant the server received no skills list, execution environment, codebases, or other context data on summarization requests.

Adds a context field to SummarizeConversation, wires it through the slash command handler, API conversion, and secret redaction paths. The context is now populated from the same input_context_for_request call that all other slash commands use.

Linked Issue

QUALITY-615

  • The linked issue is labeled ready-to-spec or ready-to-implement.

Testing

  • cargo check passes
  • All existing match arms use .. patterns that cover the new field (verified by compilation)
  • Verified the three explicit destructure sites (convert_to.rs, redaction.rs, slash_command.rs) correctly handle the new field

Companion server PR: https://github.com/warpdotdev/warp-server/pull/10919

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Conversation

Co-Authored-By: Oz oz-agent@warp.dev

The SummarizeConversation input variant did not carry an AIAgentContext,
so /compact requests were sent to the server with context: None. This
meant the server had no skills list, execution environment, or other
context data on the summarization request.

Add a context field to SummarizeConversation, wire it through the slash
command handler, API conversion, and secret redaction paths.

QUALITY-615

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 6, 2026
@cephalonaut cephalonaut requested a review from harryalbert May 6, 2026 17:19
@cephalonaut cephalonaut marked this pull request as ready for review May 6, 2026 17:19
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 6, 2026

@cephalonaut

I'm starting a first review of this pull request.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR threads AIAgentContext through SummarizeConversation so /compact summarization requests include the same context data as other slash-command requests, and updates API conversion plus secret redaction accordingly.

Concerns

  • No blocking correctness, security, or error-handling concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@cephalonaut cephalonaut merged commit f1ae6f3 into master May 6, 2026
41 checks passed
@cephalonaut cephalonaut deleted the matthew/compact-sends-context branch May 6, 2026 19:55
trungtai1805 pushed a commit to trungtai1805/warp that referenced this pull request May 9, 2026
…dotdev#10274)

## Description

The `SummarizeConversation` input variant did not carry
`AIAgentContext`, so `/compact` requests were sent to the server with
`context: None`. This meant the server received no skills list,
execution environment, codebases, or other context data on summarization
requests.

Adds a `context` field to `SummarizeConversation`, wires it through the
slash command handler, API conversion, and secret redaction paths. The
context is now populated from the same `input_context_for_request` call
that all other slash commands use.

## Linked Issue


[QUALITY-615](https://linear.app/warpdotdev/issue/QUALITY-615/summarization-elides-available-skills-and-external-context)

- [x] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.

## Testing

- [x] `cargo check` passes
- [x] All existing match arms use `..` patterns that cover the new field
(verified by compilation)
- [x] Verified the three explicit destructure sites (convert_to.rs,
redaction.rs, slash_command.rs) correctly handle the new field

Companion server PR:
warpdotdev/warp-server#10919

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode


[Conversation](https://staging.warp.dev/conversation/38229205-9edd-4787-883a-c775cebeaeb8)

Co-Authored-By: Oz <oz-agent@warp.dev>

Co-authored-by: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants