Skip to content

feat: add maxTimeMS support to the database tools COMPASS-10235#8020

Open
lerouxb wants to merge 2 commits intomainfrom
tools-maxTimeMS
Open

feat: add maxTimeMS support to the database tools COMPASS-10235#8020
lerouxb wants to merge 2 commits intomainfrom
tools-maxTimeMS

Conversation

@lerouxb
Copy link
Copy Markdown
Member

@lerouxb lerouxb commented Apr 24, 2026

Copilot AI review requested due to automatic review settings April 24, 2026 14:23
@github-actions github-actions Bot added the feat label Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for propagating Compass’ maxTimeMS preference into the MCP/database tool runner configuration so db-read tool calls can respect operation time limits.

Changes:

  • Extend the tools context/config to include optional maxTimeMS and pass it into UserConfigSchema.
  • Keep runner.userConfig.maxTimeMS in sync when ToolsController.setContext() is called.
  • Plumb prefs.maxTimeMS through the Compass Assistant provider and update related unit tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/compass-generative-ai/src/tools-controller.ts Adds maxTimeMS to tools context/config and syncs it to MCP runner userConfig.
packages/compass-generative-ai/src/tools-controller.spec.ts Adds a unit test verifying maxTimeMS sync behavior in setContext().
packages/compass-assistant/src/compass-assistant-provider.tsx Passes prefs.maxTimeMS into the tools context setup.
packages/compass-assistant/src/compass-assistant-provider.spec.tsx Updates expectations to include the new maxTimeMS field in setContext() calls.

Comment thread packages/compass-assistant/src/compass-assistant-provider.tsx
@lerouxb lerouxb marked this pull request as ready for review April 24, 2026 14:52
@lerouxb lerouxb requested a review from a team as a code owner April 24, 2026 14:52
@lerouxb lerouxb requested a review from mabaasit April 24, 2026 14:52
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.

3 participants