feat: bring webhook mode closer to action mode
Webhook deliveries now run the same issue and PR triage as action mode on open/edit/reopen events, gated by WEBHOOK_TRIAGE_ENABLED; @bot answers embed the host-curated repository knowledge cache from R2 (never the uninitialized scaffold); exact /recheck and /conflict commands get a guidance reply pointing to action mode instead of silence. Cache restores write through a temporary file and rename so concurrent webhook work never reads a partial object. Documents that all webhook local writes stay inside the current working directory.
This commit is contained in:
1 parent
ec601bef93
commit
a6e3fd2fc5
10 files changed
+336
-13
No files matched your search
@@ -57,6 +57,7 @@ const configSchema = z.object({
|
||||
webhookChatPermission: z.enum(["anyone", "read", "write"]).default("read"),
|
||||
webhookQueueConcurrency: z.coerce.number().int().positive().max(20).default(2),
|
||||
webhookQueueLimit: z.coerce.number().int().positive().max(10_000).default(500),
|
||||
webhookTriageEnabled: envBoolean.default(true),
|
||||
gooseModel: optionalString.default("gpt-5.4"),
|
||||
gooseThinkingEffort: z.preprocess((value) => {
|
||||
if (value === "" || value === undefined) {
|
||||
@@ -114,6 +115,7 @@ export const config = configSchema.parse({
|
||||
webhookChatPermission: process.env.WEBHOOK_CHAT_PERMISSION,
|
||||
webhookQueueConcurrency: process.env.WEBHOOK_QUEUE_CONCURRENCY,
|
||||
webhookQueueLimit: process.env.WEBHOOK_QUEUE_LIMIT,
|
||||
webhookTriageEnabled: process.env.WEBHOOK_TRIAGE_ENABLED,
|
||||
gooseModel: process.env.GOOSE_MODEL ?? process.env.OPENCODE_MODEL,
|
||||
gooseThinkingEffort:
|
||||
process.env.GOOSE_THINKING_EFFORT ?? process.env.OPENCODE_REASONING_EFFORT,
|
||||
|
||||
Reference in new issue
Block a user