Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): release confirmed thread model overrides #10205

ClosedBeLazy167(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/10205/headopened View on GitHub

Showing 9 changed files with 8 additions and 0 deletions (loading 6).

x
0 of 9 viewed, 9 left
2 additions and 0 deletionsapps/mobile/src/state/pending-task-editor-writes.test.tsModified
View file
@@ -13,6 +13,8 @@
}>,
}));
​
+vi.mock("../lib/uuid", () => ({ uuidv4: () => "uuid", randomHex: () => "0000" }));
+​
vi.mock("./thread-outbox", async () => {
const { createThreadOutboxManager } = await import("./thread-outbox-manager");
const { appAtomRegistry } = await import("./atom-registry");
4 additions and 0 deletionsapps/mobile/src/state/thread-outbox-model.tsModified
View file
@@ -52,6 +52,8 @@
text: Schema.String,
attachments: Schema.Array(DraftComposerAttachmentSchema),
modelSelection: Schema.optional(ModelSelection),
+ // Optional additions need no version bump: older readers drop unknown keys.
+ modelSelectionId: Schema.optional(Schema.String),
runtimeMode: Schema.optional(RuntimeMode),
interactionMode: Schema.optional(ProviderInteractionMode),
// Present when the queued item creates a brand-new thread (pending task)
@@ -81,6 +83,8 @@
readonly text: string;
readonly attachments: ReadonlyArray<DraftComposerAttachment>;
readonly modelSelection?: ModelSelectionType;
+ /** Id of the composer draft choice this message sent; delivery releases only that choice. */
+ readonly modelSelectionId?: string;
readonly runtimeMode?: RuntimeModeType;