@inetafrica/open-claudia 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/core/router.js +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v2.6.1
|
|
4
|
+
- **Fix: replying to a bot message now carries the quoted context.** Since v2.0.0 the router skipped reply context when the replied-to message came from the bot itself (assuming it was already in conversation context) — which silently dropped the link whenever that message was old or compacted away. Reply context is now always injected, labelled with provenance ("your earlier assistant message" vs "this message").
|
|
5
|
+
|
|
3
6
|
## v2.6.0
|
|
4
7
|
- **Dream: nightly memory consolidation (Phase 3 of the memory system).** A quiet-hours pass (`core/dream.js`, default 4am via `DREAM_CRON`, model `DREAM_MODEL` default sonnet, `DREAM=off` to disable) reviews the entire pack + entity memory on a stronger model and returns a strict-JSON decision that bot code applies:
|
|
5
8
|
- **Merges** packs that drifted into the same topic (sections synthesised, not concatenated) — merged-away packs are backed up to `~/.open-claudia/backup/dream-<stamp>/` before removal.
|
package/core/router.js
CHANGED
|
@@ -324,9 +324,7 @@ async function handleText(envelope) {
|
|
|
324
324
|
|
|
325
325
|
let prompt = text;
|
|
326
326
|
const reply = envelope.reply;
|
|
327
|
-
|
|
328
|
-
const skipReplyContext = replyFromBot && !reply.document && !reply.photo;
|
|
329
|
-
if (reply && !skipReplyContext) {
|
|
327
|
+
if (reply) {
|
|
330
328
|
let ctx = "";
|
|
331
329
|
if (reply.text) ctx = reply.text;
|
|
332
330
|
if (reply.caption) ctx += (ctx ? "\n" : "") + reply.caption;
|
|
@@ -353,7 +351,10 @@ async function handleText(envelope) {
|
|
|
353
351
|
}
|
|
354
352
|
}
|
|
355
353
|
if (reply.photo) ctx += (ctx ? "\n" : "") + "[Attached photo]";
|
|
356
|
-
if (ctx)
|
|
354
|
+
if (ctx) {
|
|
355
|
+
const who = reply.from?.is_bot ? "your earlier assistant message" : "this message";
|
|
356
|
+
prompt = `Replying to ${who}:\n---\n${ctx.length > 1000 ? ctx.slice(0, 1000) + "..." : ctx}\n---\n\n${text}`;
|
|
357
|
+
}
|
|
357
358
|
}
|
|
358
359
|
|
|
359
360
|
await runClaude(prompt, state.currentSession.dir, envelope.messageId);
|
package/package.json
CHANGED