-
Notifications
You must be signed in to change notification settings - Fork 12
promote: agent timeout 600 default to homolog #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -288,7 +288,7 @@ export const agentProviders = pgTable( | |
|
|
||
| // Default settings | ||
| defaultStream: boolean('default_stream').notNull().default(true), | ||
| defaultTimeout: integer('default_timeout').notNull().default(60), | ||
| defaultTimeout: integer('default_timeout').notNull().default(600), | ||
|
|
||
| // Capabilities (auto-detected or manually set) | ||
| supportsStreaming: boolean('supports_streaming').notNull().default(true), | ||
|
|
@@ -690,7 +690,7 @@ export const instances = pgTable( | |
| agentId: uuid('agent_id').references(() => agents.id, { onDelete: 'set null' }), | ||
|
|
||
| // ---- Agent Configuration (Instance Override) ---- | ||
| agentTimeout: integer('agent_timeout').notNull().default(60), | ||
| agentTimeout: integer('agent_timeout').notNull().default(600), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Changing the Drizzle schema default here does not update the actual Postgres defaults on existing deployments: the checked-in migrations still create Useful? React with 👍 / 👎. |
||
| agentStreamMode: boolean('agent_stream_mode').notNull().default(false), | ||
| /** When agent should reply to messages */ | ||
| agentReplyFilter: jsonb('agent_reply_filter').$type<AgentReplyFilter>(), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default agent timeout value of
600is hardcoded in multiple schemas, database definitions, and runtime fallbacks across the codebase. To prevent code duplication and make future updates easier, consider defining a shared constant (e.g.,DEFAULT_AGENT_TIMEOUT_SECONDS = 600) in a central location likepackages/coreand importing it where needed.