@adhdev/daemon-core 0.9.24 → 0.9.26

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/session-host-core",
3
- "version": "0.9.24",
3
+ "version": "0.9.26",
4
4
  "description": "ADHDev local session host core \u2014 session registry, protocol, buffers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.24",
3
+ "version": "0.9.26",
4
4
  "description": "ADHDev daemon core \u2014 CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,6 +70,7 @@ export interface CommandHelpers {
70
70
  }
71
71
 
72
72
  const COMMAND_DEBUG_LEVELS = new Set([
73
+ 'read_chat',
73
74
  'pty_input',
74
75
  'pty_resize',
75
76
  'cdp_eval',
@@ -356,6 +356,12 @@ export class DaemonCommandRouter {
356
356
  if (logs.length > 0) {
357
357
  return { success: true, logs, totalBuffered: logs.length };
358
358
  }
359
+ // Incremental polling must not fall back to unfiltered file text: the file
360
+ // format is not timestamp-filterable, and returning its tail makes the UI
361
+ // replace structured logs with old raw fallback lines when nothing new exists.
362
+ if (sinceTs > 0) {
363
+ return { success: true, logs: [], totalBuffered: 0 };
364
+ }
359
365
  // Priority 2: file fallback
360
366
  if (fs.existsSync(LOG_PATH)) {
361
367
  const content = fs.readFileSync(LOG_PATH, 'utf-8');