Skip to content

Commit 7876b35

Browse files
committed
docs(tui): align update-notice comments with no-toast behavior
1 parent 77499e6 commit 7876b35

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/pythinker_code/ui/shell/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,8 +2203,8 @@ def _compute_update_notice(self) -> str | None:
22032203
if not target:
22042204
return None
22052205
# A release already installed this session needs a restart, not /update —
2206-
# keep this line in agreement with the install toast instead of telling
2207-
# the user to re-run an update that has already landed.
2206+
# surface that here instead of telling the user to re-run an update that
2207+
# has already landed.
22082208
status = read_update_status()
22092209
installed = (
22102210
status is not None
@@ -2223,12 +2223,12 @@ def _schedule_startup_update_task(self) -> None:
22232223
"""Pick the startup update behavior and schedule it (non-blocking).
22242224
22252225
- env kill-switch set → nothing (cache filters already suppress the
2226-
toast, matching today's hard-disable behavior).
2226+
notice, matching today's hard-disable behavior).
22272227
- enabled → silent background install.
2228-
- config-disabled OR source checkout → informational toast only
2229-
(`_auto_update`); self-suppresses for source checkouts because
2228+
- config-disabled OR source checkout → refresh the persistent notice
2229+
only (`_auto_update`); self-suppresses for source checkouts because
22302230
`pending_update_notice()` returns None in that path.
2231-
- non-PythinkerSoul → same toast-only path (no runtime config to
2231+
- non-PythinkerSoul → same notice-refresh path (no runtime config to
22322232
consult), matching the prior unconditional `_auto_update` behavior.
22332233
"""
22342234
if get_env_bool("PYTHINKER_CLI_NO_AUTO_UPDATE"):

0 commit comments

Comments
 (0)