Commit 306a61e
committed
fix(gastown): address second round of PR review comments
Comment: expired kilocode_token can't self-refresh
- Use jose's jwtVerify with a large clockTolerance instead of
verifyKiloToken so expired but validly-signed tokens are accepted.
The alarm is the recovery path for expired tokens; rejecting on exp
would leave the town permanently stuck.
Comment: eviction snapshot --no-verify bypasses pre-push hooks
- Removed --no-verify from the git push in the eviction drain path.
Repo-level pre-push hooks now run normally.
Comment: force-save commit missing git author identity
- Pass GIT_AUTHOR_NAME/EMAIL and GIT_COMMITTER_NAME/EMAIL from the
agent's startupEnv into the Bun.spawn env, falling back to
GASTOWN_GIT_AUTHOR_* from process.env, then to 'Gastown'.
Comment: stale triage restart interrupts unrelated work
- Guard the RESTART/RESTART_WITH_BACKOFF path with an agentStillOnBead
check before stopping the agent or resetting its status to idle.
Matches the existing CLOSE_BEAD / REASSIGN_BEAD guard pattern.
Comment: failed review messages disappear from needs-attention
- extractFailureMessage now falls back to metadata.message (from
review_completed/pr_creation_failed events) when the structured
failure_reason.message path yields nothing.1 parent 3eaefd1 commit 306a61e
File tree
3 files changed
+76
-28
lines changed- cloudflare-gastown
- container/src
- src/dos
- town
3 files changed
+76
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | | - | |
| 1140 | + | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1149 | 1162 | | |
1150 | 1163 | | |
1151 | 1164 | | |
1152 | 1165 | | |
| 1166 | + | |
1153 | 1167 | | |
1154 | 1168 | | |
1155 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
1679 | 1680 | | |
1680 | 1681 | | |
1681 | 1682 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | 1683 | | |
1688 | 1684 | | |
1689 | 1685 | | |
1690 | 1686 | | |
1691 | 1687 | | |
1692 | 1688 | | |
1693 | 1689 | | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1694 | 1701 | | |
1695 | 1702 | | |
1696 | 1703 | | |
| |||
1706 | 1713 | | |
1707 | 1714 | | |
1708 | 1715 | | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1728 | 1738 | | |
1729 | 1739 | | |
1730 | 1740 | | |
| |||
3540 | 3550 | | |
3541 | 3551 | | |
3542 | 3552 | | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
3543 | 3557 | | |
3544 | 3558 | | |
3545 | | - | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
3546 | 3571 | | |
3547 | 3572 | | |
3548 | 3573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
0 commit comments