Repository navigation
Commit ffbd484
fix(agent): keep the credential verdict a preserved snapshot just measured
`_test_record` keeps a previous record's capabilities when a verify fails, so
one flaky Test does not cost a row its menu and statefulness. It rebuilt that
record from `previous` and copied only the verdict fields, and `needs_auth` was
not among them -- it arrived on main with #554, after this helper was written.
An agent that worked and has since been logged out therefore stayed
`needs_auth: false` through the very Test that detected the refusal, and the
page went on offering it a Connect the agent would decline.
`needs_auth` travels with the verdict, not with the capabilities: a menu
measured earlier is still the best account of what the agent can do, but
whether it will open a session without a credential is a fact about this
handshake alone.
Co-authored-by: Claude (claude-opus-5[1m]) <noreply@anthropic.com>1 parent 4113b72 commit ffbd484
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
616 | 623 | | |
617 | 624 | | |
618 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
467 | 507 | | |
468 | 508 | | |
469 | 509 | | |
| |||
0 commit comments