Skip to content

Commit 6a48258

Browse files
committed
fix(ci): address review sweep regressions
1 parent 679b677 commit 6a48258

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

extensions/signal/src/client-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function waitForNativePreferenceGrace(
6262
return new Promise((resolve) => {
6363
const timer = setTimeout(() => resolve({ ok: false }), NATIVE_PREFERENCE_GRACE_MS);
6464
timer.unref?.();
65-
nativeResultPromise.then((result) => {
65+
void nativeResultPromise.then((result) => {
6666
clearTimeout(timer);
6767
resolve(result);
6868
});

extensions/twitch/src/twitch-client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ export class TwitchClientManager {
4949
);
5050
this.logger.info(`Added user ${userId} to RefreshingAuthProvider for ${account.username}`);
5151
} catch (err) {
52-
throw new Error(`Failed to add user to RefreshingAuthProvider: ${formatErrorMessage(err)}`);
52+
throw new Error(
53+
`Failed to add user to RefreshingAuthProvider: ${formatErrorMessage(err)}`,
54+
{
55+
cause: err,
56+
},
57+
);
5358
}
5459

5560
authProvider.onRefresh((userId, token) => {

src/cli/completion-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function fishWords(values: readonly string[]): string {
4949

5050
function fishOptionFlags(options: Command["options"], wantsValue: boolean): string[] {
5151
return options.flatMap((option) => {
52-
if (Boolean(option.required || option.optional) !== wantsValue) {
52+
if ((option.required || option.optional) !== wantsValue) {
5353
return [];
5454
}
5555
return splitOptionFlags(option.flags).filter((flag) => flag.startsWith("-"));

src/cli/cron-cli/register.cron-edit.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,17 @@ export function registerCronEditCommand(cron: Command) {
254254
typeof opts.channel === "string" || typeof opts.to === "string" || hasDeliveryThreadId;
255255
const hasDeliveryAccount = typeof opts.account === "string";
256256
const hasBestEffort = typeof opts.bestEffortDeliver === "boolean";
257-
const hasAgentTurnPatch =
257+
const hasAgentTurnPayloadField =
258258
typeof opts.message === "string" ||
259259
Boolean(model) ||
260260
Boolean(thinking) ||
261261
hasTimeoutSeconds ||
262262
typeof opts.lightContext === "boolean" ||
263263
typeof opts.tools === "string" ||
264264
Array.isArray(opts.tools) ||
265-
opts.clearTools ||
265+
opts.clearTools;
266+
const hasAgentTurnPatch =
267+
hasAgentTurnPayloadField ||
266268
hasDeliveryModeFlag ||
267269
hasDeliveryTarget ||
268270
hasDeliveryAccount ||
@@ -299,8 +301,11 @@ export function registerCronEditCommand(cron: Command) {
299301
const delivery: Record<string, unknown> = {};
300302
if (hasDeliveryModeFlag) {
301303
delivery.mode = opts.announce || opts.deliver === true ? "announce" : "none";
302-
} else if (opts.bestEffortDeliver === true) {
303-
// Back-compat: toggling best-effort alone has historically implied announce mode.
304+
} else if (
305+
opts.bestEffortDeliver === true ||
306+
(hasAgentTurnPayloadField && hasBestEffort)
307+
) {
308+
// Back-compat: best-effort true and payload edits historically implied announce mode.
304309
delivery.mode = "announce";
305310
}
306311
if (typeof opts.channel === "string") {

0 commit comments

Comments
 (0)