@jacexh/claude-web-console 0.13.3 → 0.13.4
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/package.json
CHANGED
|
@@ -78,4 +78,12 @@ describe('isTurnMessage', () => {
|
|
|
78
78
|
it('returns true for result messages (turn complete)', () => {
|
|
79
79
|
expect(isTurnMessage({ type: 'result' })).toBe(true)
|
|
80
80
|
})
|
|
81
|
+
|
|
82
|
+
it('returns false for user messages (echo from control operations like setEnv/setModel)', () => {
|
|
83
|
+
expect(isTurnMessage({ type: 'user' })).toBe(false)
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
it('returns false for user messages with content (applyFlagSettings echo)', () => {
|
|
87
|
+
expect(isTurnMessage({ type: 'user', message: { role: 'user', content: 'env change' } })).toBe(false)
|
|
88
|
+
})
|
|
81
89
|
})
|
|
@@ -20,5 +20,6 @@ export function shouldResetToIdleOnStreamEnd(currentStatus: string): boolean {
|
|
|
20
20
|
*/
|
|
21
21
|
export function isTurnMessage(msg: Record<string, unknown>): boolean {
|
|
22
22
|
if (msg.type === 'system' && msg.subtype === 'init') return false
|
|
23
|
+
if (msg.type === 'user') return false
|
|
23
24
|
return true
|
|
24
25
|
}
|