diff --git a/changelog.md b/changelog.md index aca28aa..695ab00 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-08-30 - 5.3.1 - fix(client(tspmIpcClient)) +Use bare topic names for IPC client subscribe/unsubscribe to fix log subscription issues + +- Updated ts/client/tspm.ipcclient.ts to call ipcClient.subscribe/unsubscribe with the bare topic (e.g. 'logs.') instead of prefixed 'topic:<...>'. +- Added comments clarifying that the IpcClient registers the 'topic:' prefix internally. +- Fixes incorrect topic registration that could prevent log streaming handlers from receiving messages. + ## 2025-08-30 - 5.3.0 - feat(cli/daemon/processmonitor) Add flexible target resolution and search command; improve restart/backoff and error handling diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index e98fc12..05c1162 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tspm', - version: '5.3.0', + version: '5.3.1', description: 'a no fuzz process manager' } diff --git a/ts/client/tspm.ipcclient.ts b/ts/client/tspm.ipcclient.ts index 2d85823..0d440bf 100644 --- a/ts/client/tspm.ipcclient.ts +++ b/ts/client/tspm.ipcclient.ts @@ -155,7 +155,9 @@ export class TspmIpcClient { const id = toProcessId(processId); const topic = `logs.${id}`; - await this.ipcClient.subscribe(`topic:${topic}`, handler); + // Note: IpcClient.subscribe expects the bare topic (without the 'topic:' prefix) + // and will register a handler for 'topic:' internally. + await this.ipcClient.subscribe(topic, handler); } /** @@ -168,7 +170,8 @@ export class TspmIpcClient { const id = toProcessId(processId); const topic = `logs.${id}`; - await this.ipcClient.unsubscribe(`topic:${topic}`); + // Pass bare topic; client handles 'topic:' prefix internally + await this.ipcClient.unsubscribe(topic); } /**