Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

[2026-09-21] merging staging to main

merged#2859CedarCopilot

CedarCopilot wants to merge 1 commit into main from staging

Potential production issues

Agent tool calls may lose their request context after this change

A wrapped agent tool no longer receives the request context supplied by its caller. The same check passes on the current base and fails on this PR revision.

When an agent invokes a tool through the master tool surface.

Suggested fix: Preserve the caller's request context when wrapping the master tool execution, then rerun the same check on both revisions.

Technical evidence

The same behavior check passed on the current base and failed on this change.

Observed difference: withApprovalContext's wrapped execute still receives the real requestContext

Related changed code: apps/server/src/mastra/tools/master-surface.ts.

run b6e44454-3e48-448d-a17c-106fe1e3b56b, completed Sep 21, 2026, 6:24 AM