Files
oh-my-opencode/dist/plugin/ultrawork-db-model-override.d.ts
T
2026-03-14 04:56:50 +00:00

12 lines
466 B
TypeScript

/**
* Schedules a deferred SQLite update to change the message model in the DB
* WITHOUT triggering a Bus event. Uses microtask retry loop to wait for
* Session.updateMessage() to save the message first, then overwrites the model.
*
* Falls back to setTimeout(fn, 0) after 10 microtask attempts.
*/
export declare function scheduleDeferredModelOverride(messageId: string, targetModel: {
providerID: string;
modelID: string;
}, variant?: string): void;