Repository navigation
Commit c76655f
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 a22b029 commit c76655f
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 | | |
| |||
325 | 324 | | |
326 | 325 | | |
327 | 326 | | |
328 | | - | |
| 327 | + | |
329 | 328 | | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
333 | 332 | | |
334 | | - | |
335 | 333 | | |
336 | 334 | | |
337 | 335 | | |
| |||
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
351 | | - | |
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
1295 | 1294 | | |
1296 | 1295 | | |
1297 | 1296 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | 1297 | | |
1302 | 1298 | | |
1303 | 1299 | | |
| |||
1341 | 1337 | | |
1342 | 1338 | | |
1343 | 1339 | | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
1352 | 1346 | | |
1353 | 1347 | | |
1354 | 1348 | | |
| |||
1423 | 1417 | | |
1424 | 1418 | | |
1425 | 1419 | | |
1426 | | - | |
1427 | 1420 | | |
1428 | 1421 | | |
1429 | 1422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
247 | 242 | | |
248 | 243 | | |
249 | 244 | | |
| |||
264 | 259 | | |
265 | 260 | | |
266 | 261 | | |
267 | | - | |
268 | 262 | | |
269 | 263 | | |
270 | 264 | | |
| |||
0 commit comments