@adhdev/daemon-core 0.9.77-rc.13 → 0.9.77-rc.15
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/stream-commands.ts +2 -2
package/package.json
CHANGED
|
@@ -114,10 +114,10 @@ export async function handlePtyInput(h: CommandHelpers, args: any): Promise<Comm
|
|
|
114
114
|
const { cliType, data, targetSessionId } = args || {};
|
|
115
115
|
if (!data) return { success: false, error: 'data required' };
|
|
116
116
|
|
|
117
|
-
// Filter out VT100/VT420 Device Attributes responses (e.g. \x1b[?1;2c)
|
|
117
|
+
// Filter out VT100/VT420 Device Attributes responses (e.g. \x1b[?1;2c or \x1b[>0;276;0c)
|
|
118
118
|
// These are echoed by xterm.js in the dashboard in response to \x1b[c queries
|
|
119
119
|
// and pollute the CLI input buffer.
|
|
120
|
-
const cleanData = typeof data === 'string' ? data.replace(/\x1b\[
|
|
120
|
+
const cleanData = typeof data === 'string' ? data.replace(/\x1b\[[?>][0-9;]*c/g, '') : data;
|
|
121
121
|
if (!cleanData) return { success: true };
|
|
122
122
|
|
|
123
123
|
const adapter = h.getCliAdapter(targetSessionId || cliType);
|