test(cli): cover cli_refresh_interval default; map salvaged author

Follow-up to the salvaged #48312 — adds the config-default test (ported
from #48319) and the AUTHOR_MAP entry for the cherry-picked commit.
This commit is contained in:
teknium1 2026-06-19 06:44:37 -07:00 committed by Teknium
parent c1ffd4c3b4
commit 1cc915763b
2 changed files with 11 additions and 0 deletions

View file

@ -1532,6 +1532,7 @@ AUTHOR_MAP = {
"erik.engervall@gmail.com": "erikengervall", # PR #28774 (firecrawl integration tag)
"egilewski@egilewski.com": "egilewski", # PR #30432 (MEDIA path traversal fix, GHSA-jmf9-9729-7pp8)
"edison@mcclean.codes": "McClean-Edison", # PR #29817 (register_auxiliary_task plugin API)
"OYLFLMH@users.noreply.github.com": "OYLFLMH", # PR #48312 salvage (cli_refresh_interval config, #48309)
"zhangsamuel12@gmail.com": "SamuelZ12", # PR #7480 (show recap after in-session resume)
"490408354@qq.com": "daizhonggeng", # PR #9020 (numbered /resume selection)
"claw@openclaw.ai": "wanwan2qq", # PR #10215 (strip brackets/quotes from /resume; gateway session-ID lookup)

View file

@ -955,6 +955,16 @@ class TestInterimAssistantMessageConfig:
assert raw["display"]["interim_assistant_messages"] is True
class TestCliRefreshIntervalConfig:
"""Test the CLI refresh_interval config default (#48309)."""
def test_default_config_disables_cli_refresh_interval(self):
"""cli_refresh_interval defaults to 0 (disabled) to avoid
background redraws that fight terminal auto-scroll-on-output
in non-fullscreen mode (Xshell, iTerm2, Windows Terminal)."""
assert DEFAULT_CONFIG["display"]["cli_refresh_interval"] == 0
class TestDiscordChannelPromptsConfig:
def test_default_config_includes_discord_channel_prompts(self):
assert DEFAULT_CONFIG["discord"]["channel_prompts"] == {}