mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-10 17:27:10 +00:00
fix(sdk): hide ACP usage updates from transcripts (#8790)
* test(sdk): reproduce visible usage updates * fix(sdk): hide ACP usage updates from transcripts
This commit is contained in:
parent
3e731cda8b
commit
f3ba99f545
2 changed files with 14 additions and 0 deletions
|
|
@ -839,6 +839,7 @@ function normalizeSessionUpdate(
|
|||
case 'plan':
|
||||
return [normalizePlanUpdate(update, base)];
|
||||
case 'current_mode_update':
|
||||
case 'usage_update':
|
||||
return [];
|
||||
default:
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -2509,6 +2509,19 @@ describe('daemon UI normalizer — Wave 3/4 event coverage (PR-A)', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
it('does not surface usage_update as a debug transcript event', () => {
|
||||
const events = normalizeDaemonEvent(
|
||||
envelopeOf('session_update', {
|
||||
update: {
|
||||
sessionUpdate: 'usage_update',
|
||||
used: 46_351,
|
||||
size: 1_000_000,
|
||||
},
|
||||
}),
|
||||
);
|
||||
expect(events).toEqual([]);
|
||||
});
|
||||
|
||||
it('normalizes memory_changed with closed-enum scope + mode', () => {
|
||||
const events = normalizeDaemonEvent(
|
||||
envelopeOf('memory_changed', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue