Commit 73f77da
committed
fix(proxy): stop the --uds banner advertising a recipe that cannot work
Both startup banners printed an ANTHROPIC_UNIX_SOCKET=... claude line on a
socket bind. That configuration is the one this branch's own docs document as
broken: it satisfies Claude Code's api.anthropic.com host check but
reclassifies the session as API-key auth, so the session then fails to
authenticate. Runtime output was contradicting the docs and walking users into
the failure. Review feedback on #3151.
The socket branch of both banners now comes from uds.socket_usage_lines(), a
single agent-neutral block: the socket path, the transport requirement (the
client must speak HTTP over a Unix socket natively), a curl example, and a
link to the docs page that carries the per-client detail. The legacy banner's
hardcoded "Claude Code:" label is now computed alongside it, so the socket
bind no longer addresses one agent by name; both branches still render to the
same 70-column inner width.
Per-client wiring stays in the docs, where it can be qualified. Three tests
pin the contract: the unsupported recipe is absent, the replacement states the
requirement and links the docs, and no agent is named at all. They are pure
string assertions, so they run on every platform rather than only where
AF_UNIX exists.1 parent a63919d commit 73f77da
4 files changed
Lines changed: 76 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
1640 | | - | |
| 1639 | + | |
| 1640 | + | |
1641 | 1641 | | |
| 1642 | + | |
| 1643 | + | |
1642 | 1644 | | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
| 1645 | + | |
1649 | 1646 | | |
1650 | 1647 | | |
1651 | 1648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5386 | 5386 | | |
5387 | 5387 | | |
5388 | 5388 | | |
| 5389 | + | |
5389 | 5390 | | |
5390 | | - | |
| 5391 | + | |
| 5392 | + | |
5391 | 5393 | | |
5392 | 5394 | | |
| 5395 | + | |
5393 | 5396 | | |
5394 | 5397 | | |
5395 | 5398 | | |
| |||
5420 | 5423 | | |
5421 | 5424 | | |
5422 | 5425 | | |
5423 | | - | |
| 5426 | + | |
5424 | 5427 | | |
5425 | 5428 | | |
5426 | 5429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
108 | 133 | | |
109 | 134 | | |
110 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
133 | 174 | | |
134 | 175 | | |
135 | 176 | | |
| |||
0 commit comments