Skip to content

feat: scheduled warmup, timezone, and TUI Settings tab - #80

Merged
cursor[bot] merged 8 commits into
devfrom
cursor/tui-settings-6670
Aug 27, 2026
Merged

cursor[bot] merged 8 commits into
devfrom
cursor/tui-settings-6670

Conversation

@xjoker

@xjoker xjoker commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

What

Timed daemon warmup plus a TUI Settings tab that can edit the full codex-switch config.toml. Rolling-dev base is 20260827.1.0 (20260827.1.0-dev after CI injects -dev).

Warmup contract

[daemon] auto_warmup is the master switch. TUI W stays a session toggle.

  • auto_warmup = false: slots ignored
  • auto_warmup = true and warmup_times empty: warm during cache refresh
  • auto_warmup = true and times set: cache refresh only updates usage; warmup runs at HH:MM slots (at most 10, spacing unrestricted)

daemon.timezone is an IANA name such as Asia/Shanghai or UTC. Empty uses the process local timezone.

Settings tab

Tab cycles Accounts → Providers → Settings. s saves. Unsaved edits are kept when leaving the tab. warmup_times accepts a comma-separated list; the add row hides at 10 slots.

Notes

Merge target is dev. Do not merge master. Do not create a v* stable tag. Move rolling tag dev only after CI.yml is green on the published SHA.

Open in Web Open in Cursor 

cursoragent and others added 3 commits August 26, 2026 16:14
When auto_warmup is on and warmup_times is set, cache refresh only
updates usage and a dedicated ~60s timer warms the latest overdue
slot today. Empty times keep cache-refresh warmup. last_warmup_slot
survives daemon restarts.

Co-authored-by: lolitaupdate <[email protected]>
Tab cycles Accounts, Providers, and Settings. The form covers every
product-owned key including warmup_times; s saves (Accounts s still
sorts). Comments, rustdoc, and in-repo explanations stay English.

Co-authored-by: lolitaupdate <[email protected]>
Empty daemon.timezone keeps process-local time; a named zone such as
Asia/Shanghai pins slot due-detection and last_warmup_slot stamps.
Add a live daemon trigger test and a Linux install unit-file test.

Co-authored-by: lolitaupdate <[email protected]>
@cursor cursor Bot changed the title feat: scheduled warmup and TUI Settings tab feat: scheduled warmup, timezone, and TUI Settings tab Aug 27, 2026
cursoragent and others added 5 commits August 27, 2026 00:56
macOS clippy -D warnings treated the Linux-only install helpers as dead
code because the test that uses them is cfg(target_os = "linux").

Co-authored-by: lolitaupdate <[email protected]>
Tab no longer leaves Settings while a field is being typed, and returning
to the tab reloads from disk only when the form is clean. Editing a warmup
slot keeps focus on the new HH:MM after sort. Tests walk every owned
config key through save.

Co-authored-by: lolitaupdate <[email protected]>
Accept a comma/space-separated HH:MM list on add or edit, keep focus on
the add row after insert, always show the slot list, and warn immediately
when two slots are less than five hours apart.

Co-authored-by: lolitaupdate <[email protected]>
Drop the 5-hour gap warning. Users pick any HH:MM list; config load and
the Settings form keep at most 10 times after sort. The add row hides
when the list is full.

Co-authored-by: lolitaupdate <[email protected]>
Allocate today's rolling-dev base so CI can inject 20260827.1.0-dev.

Co-authored-by: lolitaupdate <[email protected]>
@cursor
cursor Bot merged commit 94ed818 into dev Aug 27, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/tui-settings-6670 branch September 9, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants