Personal Telegram developer console for GitHub
feat: allow pending workspace file input
davoodmehraban89 committed
Oct 3, 2026 at 14:39 UTC
47f32d25c2438e0de126279c7f4909491f97fdf5
1 file changed
+2
-2
src/durable/workspace-store.js
+2
-2
@@ -177,7 +177,7 @@ export class WorkspaceStore {
177
async #setPending(payload, now) {
178
const workspace = await this.#requireWorkspace(payload.workspaceId, now);
179
const mode = String(payload.mode || '');
180
- if (!['draft', 'commit_message'].includes(mode)) throw new Error('Pending input mode is invalid');
180
+ if (!['draft', 'draft_file', 'commit_message'].includes(mode)) throw new Error('Pending input mode is invalid');
181
const pending = { workspaceId: workspace.id, mode, expiresAt: workspace.expiresAt };
182
await this.state.storage.put('pending', pending);
183
await this.#schedule(pending.expiresAt);
@@ -349,4 +349,4 @@ export class WorkspaceStore {
349
await this.state.storage.setAlarm(next);
350
}
351
}
352
-}
352
+}
\ No newline at end of file