Skip to content

Commit 028bc76

Browse files
ericallamTrigger.dev RepoOps
authored andcommitted
feat(dashboard-agent): stay warm for 5 minutes and wait 7 days between turns
```ts export const dashboardAgent = chat.agent({ idleTimeoutInSeconds: 300, turnTimeout: "7d", maxDuration: 86_400, // ... }); ``` The dashboard agent now stays warm for 5 minutes after each answer and, once suspended, waits up to 7 days for the next message. Quick follow-ups answer from the same live run, returning to a chat days later resumes it rather than starting a new run, and the chat run's compute limit is raised to a day so long conversations aren't cut off. Mono-RevId: 7b7ac10420f36e9cc76b371b40faa9b7245e1b48
1 parent cd73564 commit 028bc76

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎internal-packages/dashboard-agent/src/dashboard-agent.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ export const dashboardAgent = chat.agent({
385385
storage: dashboardAgentStorage,
386386
// A watch action files a request and answers it with a turn; see `watch-actions.ts`.
387387
actionSchema: dashboardAgentActionSchema,
388-
// Short idle window so suspended runs release their DB pool.
389-
idleTimeoutInSeconds: 60,
388+
idleTimeoutInSeconds: 300,
389+
turnTimeout: "7d",
390+
maxDuration: 86_400,
390391

391392
uiMessageStreamOptions: {
392393
// The stream carries the same sentence the transcript keeps, so the live chunk

0 commit comments

Comments
 (0)