feat: enhance chat approval flow for pending operations with pre-fill… (#566)

* feat: enhance chat approval flow for pending operations with pre-filled commit details

* fix: update message validation to be case-insensitive and simplify approve schema

* fix: enhance approval guidance for high-risk operations and improve message clarity
This commit is contained in:
Mattsson
2026-05-25 13:11:27 +02:00
committed by GitHub
parent 50e5520b6d
commit aeadc8bb1d
2 changed files with 34 additions and 8 deletions
@@ -322,7 +322,7 @@ describe('MCP Receipt Matcher', () => {
expect(parsed.staged).toBe(true)
expect(parsed.operation_id).toBe('op-1')
expect(parsed.message).toContain('staged')
expect(parsed.message).toMatch(/staged/i)
expect(parsed.preview).toBeDefined()
expect(parsed.preview.debit_account).toBeDefined()
})