Commit 57adc85
committed
chore(mothership): stop minting delegation tokens on request paths
The worker no longer consumes them (the CLI executes sim-side; the handler
mints its own identity per invocation), so the chat POST, v2 chat, inbox,
and execute senders were one DB roundtrip + a plaintext credential on the
wire for nothing. mintDelegationToken stays — the sim_cli handler is its
one consumer now.
Claude-Session: https://claude.ai/code/session_01CgaxNAaeD3taGdghbXn17w1 parent b9f9715 commit 57adc85
4 files changed
Lines changed: 12 additions & 31 deletions
File tree
- apps/sim
- app/api
- mothership/execute
- v2/chat
- lib/mothership
- chat
- inbox
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | | - | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| |||
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
286 | | - | |
287 | 284 | | |
288 | 285 | | |
289 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
| |||
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
258 | | - | |
259 | 256 | | |
260 | 257 | | |
261 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
1248 | 1247 | | |
1249 | 1248 | | |
1250 | 1249 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | 1250 | | |
1255 | 1251 | | |
1256 | 1252 | | |
| |||
1294 | 1290 | | |
1295 | 1291 | | |
1296 | 1292 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1305 | 1299 | | |
1306 | 1300 | | |
1307 | 1301 | | |
| |||
1375 | 1369 | | |
1376 | 1370 | | |
1377 | 1371 | | |
1378 | | - | |
1379 | 1372 | | |
1380 | 1373 | | |
1381 | 1374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
237 | 232 | | |
238 | 233 | | |
239 | 234 | | |
| |||
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
257 | | - | |
258 | 252 | | |
259 | 253 | | |
260 | 254 | | |
| |||
0 commit comments