fix(channels): keep the compaction outcome visible, gate only the start notice
Rework after review: compaction changes the context of every later turn, so its outcome (compacted / failed / cancelled) is always delivered, whether the user or the scheduler started it. Only the transient "Compressing context…" start notice follows the channel's send_progress setting, so a channel with progress off receives one notice per compaction instead of two. The manual flag is gone.
This commit is contained in:
1 parent
92f151ae67
commit
a068de8068
6 files changed
+25
-31
No files matched your search
@@ -71,9 +71,6 @@ async def test_compact_emits_one_lifecycle_and_keeps_the_session(loop, command)
|
||||
assert started.phase == "started"
|
||||
assert completed.phase == "succeeded"
|
||||
assert started.compaction_id == completed.compaction_id
|
||||
# A user-requested compaction is reported even on channels with progress off.
|
||||
assert started.manual is True
|
||||
assert completed.manual is True
|
||||
|
||||
loop.sessions.invalidate("cli:test")
|
||||
reloaded = loop.sessions.get_or_create("cli:test")
|
||||
|
||||
Reference in new issue
Block a user