fix(copilot): align principal lifetime with orchestration #26428
ci.yml
on: pull_request
Detect Version
Migrate Dev DB
/
Apply Database Migrations
Detect Desktop Changes
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Test and Build
/
Lint and Test
3m 38s
Test and Build
/
Build App
2m 35s
Check Docs Changes
Matrix: Build Dev ECR
Deploy Trigger.dev (Dev)
Matrix: Create GHCR Manifests
Process Docs
/
Process Documentation Embeddings
Prune Desktop Prereleases
0s
Desktop Release
/
Build, Sign, Notarize
Annotations
4 errors and 6 warnings
|
Test and Build / Lint and Test
Process completed with exit code 1.
|
|
lib/copilot/application/execute-workflow-use-case.test.ts > Copilot Workflow application adapter > enters the fixed Workflow resolver with trusted Copilot identity:
apps/sim/lib/copilot/application/execute-workflow-use-case.test.ts#L51
AssertionError: expected "vi.fn()" to be called with arguments: [ { principal: { …(9) }, …(1) } ]
Received:
1st vi.fn() call:
@@ -5,11 +5,11 @@
"workflowId": "workflow-1",
},
"principal": {
"audience": "sim:workflows",
"delegationId": "copilot-tool:tool-call-1",
- "expiresAt": 2026-01-01T00:05:00.000Z,
+ "expiresAt": 2026-01-01T01:00:00.000Z,
"issuedAt": 2026-01-01T00:00:00.000Z,
"kind": "delegated",
"resourceScope": {
"chatId": "chat-1",
"executionId": "execution-1",
Number of calls: 1
❯ lib/copilot/application/execute-workflow-use-case.test.ts:51:27
|
|
Test and Build / Lint and Test
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Test and Build / Lint and Test
Process completed with exit code 1.
|
|
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
|