Repository navigation
Commit 7be8077
fix(workspace): retry a failed workspace summary; make the unlink race test prove its claim
- A failed `/summary` fetch was cached as "not known" for the full five
minutes, so one network blip hid the workspace's integrations that long.
It is now kept for the failing step only; the next step asks again.
- "a step arriving after an unlink does not join the pre-unlink resolve"
waited for a second request on the wire. After the unlink there is no
local binding, so step 2 settles without any request: the second request
the test saw was a detached skill sync left over from an earlier test's
bind. Loading `skill-sync` from the contents block shifted that timing and
made it fail under load. The test now asserts the real invariant — step 2
settles while step 1 is still parked, and does not name the old workspace —
and fails when both `inflight.clear()` and the generation check are removed.
- `identity-section` tests reset the contents cache between tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fJ3X7pcGT4R9yzjsJnqsV1 parent 8ed08e3 commit 7be8077
3 files changed
Lines changed: 32 additions & 12 deletions
File tree
- packages/opencode
- src/altimate/workspace
- test/altimate/workspace
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
527 | 532 | | |
528 | 533 | | |
529 | 534 | | |
| |||
534 | 539 | | |
535 | 540 | | |
536 | 541 | | |
537 | | - | |
538 | 542 | | |
539 | 543 | | |
540 | 544 | | |
| |||
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
546 | | - | |
547 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
548 | 557 | | |
549 | | - | |
550 | | - | |
| 558 | + | |
| 559 | + | |
551 | 560 | | |
552 | 561 | | |
553 | 562 | | |
| |||
0 commit comments