fix: land oxlint config follow-ups (#1064) (thanks @connorshea)
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
### Fixes
|
||||
- Sub-agents: route announce delivery through the correct channel account IDs. (#1061, #1058) — thanks @adam91holt.
|
||||
- Repo: fix oxlint config filename and move ignore pattern into config. (#1064) — thanks @connorshea.
|
||||
- Messages: `/stop` now hard-aborts queued followups and sub-agent runs; suppress zero-count stop notes.
|
||||
- Sessions: reset `compactionCount` on `/new` and `/reset`, and preserve `sessions.json` file mode (0600).
|
||||
- Sessions: repair orphaned user turns before embedded prompts.
|
||||
|
||||
@@ -227,7 +227,7 @@ export function createMessageTool(options?: MessageToolOptions): AnyAgentTool {
|
||||
}
|
||||
}
|
||||
|
||||
if (result.toolResult) return result.toolResult;
|
||||
if ("toolResult" in result && result.toolResult) return result.toolResult;
|
||||
return jsonResult(result.payload);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -100,6 +100,7 @@ export async function getReplyFromConfig(
|
||||
let {
|
||||
sessionCtx,
|
||||
sessionEntry,
|
||||
previousSessionEntry,
|
||||
sessionStore,
|
||||
sessionKey,
|
||||
sessionId,
|
||||
|
||||
@@ -445,9 +445,9 @@ export async function runMessageAction(
|
||||
: null;
|
||||
const useTextMarker = !(channel === "discord" && marker?.discordEmbeds?.length);
|
||||
if (useTextMarker && (marker?.prefix || marker?.suffix)) {
|
||||
const base = params.message ?? "";
|
||||
params.message = `${marker?.prefix ?? ""}${base}${marker?.suffix ?? ""}`;
|
||||
message = params.message;
|
||||
const merged = `${marker?.prefix ?? ""}${message}${marker?.suffix ?? ""}`;
|
||||
params.message = merged;
|
||||
message = merged;
|
||||
}
|
||||
|
||||
const mediaUrl = readStringParam(params, "media", { trim: false });
|
||||
|
||||
Reference in New Issue
Block a user