Commit Graph

4203 Commits

Author SHA1 Message Date
Siddharth Ganesan
69d69ee95b temp 2026-04-09 11:57:49 -07:00
Vikhyath Mondreti
a738a6d711 fix stream persistence 2026-04-09 11:54:00 -07:00
Vikhyath Mondreti
2abf6ac245 Merge branch 'dev' of github.com:simstudioai/sim into dev 2026-04-09 11:35:40 -07:00
Vikhyath Mondreti
81ac66f104 fix code block 2026-04-09 11:35:27 -07:00
Siddharth Ganesan
2ba4228669 Checkpoitn 2026-04-09 11:28:05 -07:00
Vikhyath Mondreti
817833c3a3 replace react markdown with streamdown 2026-04-09 11:27:49 -07:00
Siddharth Ganesan
f2fcfe7e6e Bad hook 2026-04-09 10:55:24 -07:00
Siddharth Ganesan
b49d67e46c Remove tool truncation limits 2026-04-08 18:24:22 -07:00
Siddharth Ganesan
d22f3678fe Fix 2026-04-08 17:41:57 -07:00
Siddharth Ganesan
fd4fa1ce8d File writes 2026-04-08 16:39:02 -07:00
Siddharth Ganesan
ce1f00c8a3 Checkpoint 2026-04-08 16:17:12 -07:00
Siddharth Ganesan
3893afd424 Temp 2026-04-08 12:24:07 -07:00
Siddharth Ganesan
89f88426e2 Fix patch tool 2026-04-08 12:24:07 -07:00
Siddharth Ganesan
5be55d2b15 Patch 2026-04-08 12:24:07 -07:00
Siddharth Ganesan
5b22f1f8c3 Remove debug logs 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
2b799f3beb Appends 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
ed2dad0eed Fix 2026-04-08 12:24:06 -07:00
Vikhyath Mondreti
75d5d13876 revert back to bun runtime 2026-04-08 12:24:06 -07:00
Vikhyath Mondreti
674695edc4 change to node runtime 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
1a18ebb82e Fix run workflow 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
a6fbb51478 Empty folders should show in vfs 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
c31ae46a30 Auth vfs 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
ebc030be7e Fix spacing 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
5c47c1f1d7 Dont show internal tool result reads 2026-04-08 12:24:06 -07:00
Siddharth Ganesan
d25632cc32 Hide function code inline 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
0dd1ee041c Folder tools 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
c52d63303d file/folder tools 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
2da0cbe365 Remove dead tools 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
c29941e701 Fix trailing leak 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
8dfbe8ae3f Fix 10mb tool response limit 2026-04-08 12:24:05 -07:00
Siddharth Ganesan
ca2afaa5a2 Remove auto injected tasks 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
33433b1149 Fix shell var injection 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
4ee6fa8524 Security 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
87ff68ce11 Fix client side tools 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
b74cf283c8 Eager tool streaming 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
d85775ead5 Fix stream reconnect 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
0a41b8b287 Add client retry logic 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
0b3f3ed728 File types 2026-04-08 12:22:39 -07:00
Siddharth Ganesan
0d09d11c33 improvement(mothership): docs 2026-04-08 12:22:38 -07:00
Siddharth Ganesan
cac100a145 Add deps 2026-04-08 12:22:38 -07:00
Siddharth Ganesan
acc00df6a5 feat(mothership): append 2026-04-08 12:22:18 -07:00
Siddharth Ganesan
b6e1df4ffd feat(motheship): add docx support 2026-04-08 12:22:18 -07:00
Siddharth Ganesan
e2de4d2a9a Force redeploy 2026-04-08 12:21:28 -07:00
Siddharth Ganesan
1fc84b8e4d improvement(mothership): new agent loop (#3920)
* feat(transport): replace shared chat transport with mothership-stream module

* improvement(contracts): regenerate contracts from go

* feat(tools): add tool catalog codegen from go tool contracts

* feat(tools): add tool-executor dispatch framework for sim side tool routing

* feat(orchestrator): rewrite tool dispatch with catalog-driven executor and simplified resume loop

* feat(orchestrator): checkpoint resume flow

* refactor(copilot): consolidate orchestrator into request/ layer

* refactor(mothership): reorganize lib/copilot into structured subdirectories

* refactor(mothership): canonical transcript layer, dead code cleanup, type consolidation

* refactor(mothership): rebase onto latest staging

* refactor(mothership): rename request continue to lifecycle

* feat(trace): add initial version of request traces

* improvement(stream): batch stream from redis

* fix(resume): fix the resume checkpoint

* fix(resume): fix resume client tool

* fix(subagents): subagent resume should join on existing subagent text block

* improvement(reconnect): harden reconnect logic

* fix(superagent): fix superagent integration tools

* improvement(stream): improve stream perf

* Rebase with origin dev

* fix(tests): fix failing test

* fix(build): fix type errors

* fix(build): fix build errors

* fix(build): fix type errors

* feat(mothership): add cli execution

* fix(mothership): fix function execute tests
2026-04-08 12:21:28 -07:00
Vikhyath Mondreti
2d2448fe9a fix build error 2026-04-08 12:16:35 -07:00
Waleed
c21876ab40 fix(trigger): add react-dom and react-email to additionalPackages (#4052) 2026-04-08 11:39:06 -07:00
Theodore Li
a1173ee712 debug(log): Add logging on socket token error (#4051)
Co-authored-by: Theodore Li <theo@sim.ai>
2026-04-08 14:36:02 -04:00
Waleed
579d240cee fix(parallel): remove broken node-counting completion + resolver claim cross-block (#4045)
* fix(parallel): remove broken node-counting completion in parallel blocks

* fix resolver claim

---------

Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai>
2026-04-08 11:05:23 -07:00
Waleed
04c9057229 fix(kb): disable connectors after repeated sync failures (#4046)
* fix(kb): improve error logging when connector token resolution fails

The generic "Failed to obtain access token" error hid the actual root cause.
Now logs credentialId, userId, authMode, and provider to help diagnose
token refresh failures in trigger.dev.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(kb): disable connectors after 10 consecutive sync failures

Connectors that fail 10 times in a row are set to 'disabled' status,
stopping the cron from scheduling further syncs. The UI shows an alert
triangle with a reconnect banner. Users can re-enable via the play
button or by reconnecting their account, which resets failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(kb): disable sync button for disabled connectors, use amber badge variant

Sync button should be disabled when connector is in disabled state to
guide users toward reconnecting first. Badge variant changed from red
to amber to match the warning banner styling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(kb): address PR review comments for disabled connector feature

- Use `=== undefined` instead of falsy check for nextSyncAt to preserve
  explicit null (manual sync only) when syncIntervalMinutes is 0
- Gate Reconnect button on serviceId/providerId so it only renders for
  OAuth connectors; show appropriate copy for API key connectors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(kb): move resolveAccessToken inside try/catch for circuit-breaker coverage

Token resolution failures (e.g. revoked OAuth tokens) were thrown before
the try/catch block, bypassing consecutiveFailures tracking entirely.
Also removes dead `if (refreshed)` guards at mid-sync refresh sites since
resolveAccessToken now always returns a string or throws.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(kb): remove dead interval branch when re-enabling connector

When `updates.nextSyncAt === undefined`, syncIntervalMinutes was not in
the request, so `parsed.data.syncIntervalMinutes` is always undefined.
Simplify to just schedule an immediate sync — the sync engine sets the
proper nextSyncAt based on the connector's DB interval after completion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 10:41:06 -07:00
Vikhyath Mondreti
650487c3c9 fix(kb): doc selector (#4048) 2026-04-08 10:28:14 -07:00