fix: send heartbeat reasoning (#694) (thanks @antons)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- CLI/Status: make the “More” footer shorter and easier to scan (newlines + context-aware suggestions).
|
- CLI/Status: make the “More” footer shorter and easier to scan (newlines + context-aware suggestions).
|
||||||
- Docs/FAQ: make `clawdbot status` the first diagnostic step (and point to `status --all` for pasteable reports).
|
- Docs/FAQ: make `clawdbot status` the first diagnostic step (and point to `status --all` for pasteable reports).
|
||||||
- CLI/Status: format non-JSON-serializable provider issue values more predictably.
|
- CLI/Status: format non-JSON-serializable provider issue values more predictably.
|
||||||
|
- Gateway/Heartbeat: deliver reasoning even when the main heartbeat reply is `HEARTBEAT_OK`. (#694) — thanks @antons.
|
||||||
|
|
||||||
## 2026.1.11-7
|
## 2026.1.11-7
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ describe("getApiKeyForModel", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
vi.resetModules();
|
vi.resetModules();
|
||||||
|
const { ensureAuthProfileStore } = await import("./auth-profiles.js");
|
||||||
const { getApiKeyForModel } = await import("./model-auth.js");
|
const { getApiKeyForModel } = await import("./model-auth.js");
|
||||||
|
|
||||||
const model = {
|
const model = {
|
||||||
@@ -40,6 +41,9 @@ describe("getApiKeyForModel", () => {
|
|||||||
api: "openai-codex-responses",
|
api: "openai-codex-responses",
|
||||||
} as Model<Api>;
|
} as Model<Api>;
|
||||||
|
|
||||||
|
const store = ensureAuthProfileStore(process.env.CLAWDBOT_AGENT_DIR, {
|
||||||
|
allowKeychainPrompt: false,
|
||||||
|
});
|
||||||
const apiKey = await getApiKeyForModel({
|
const apiKey = await getApiKeyForModel({
|
||||||
model,
|
model,
|
||||||
cfg: {
|
cfg: {
|
||||||
@@ -52,6 +56,8 @@ describe("getApiKeyForModel", () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
store,
|
||||||
|
agentDir: process.env.CLAWDBOT_AGENT_DIR,
|
||||||
});
|
});
|
||||||
expect(apiKey.apiKey).toBe(oauthFixture.access);
|
expect(apiKey.apiKey).toBe(oauthFixture.access);
|
||||||
|
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ export async function runHeartbeatOnce(opts: {
|
|||||||
const mediaUrls =
|
const mediaUrls =
|
||||||
replyPayload.mediaUrls ??
|
replyPayload.mediaUrls ??
|
||||||
(replyPayload.mediaUrl ? [replyPayload.mediaUrl] : []);
|
(replyPayload.mediaUrl ? [replyPayload.mediaUrl] : []);
|
||||||
|
// Reasoning payloads are text-only; any attachments stay on the main reply.
|
||||||
const previewText = shouldSkipMain
|
const previewText = shouldSkipMain
|
||||||
? reasoningPayloads
|
? reasoningPayloads
|
||||||
.map((payload) => payload.text)
|
.map((payload) => payload.text)
|
||||||
|
|||||||
Reference in New Issue
Block a user