Skip to content

fix(web): sync idle decay from settings#946

Closed
zerone0x wants to merge 1 commit intonjbrake:mainfrom
zerone0x:fix/sync-idle-decay-from-settings
Closed

fix(web): sync idle decay from settings#946
zerone0x wants to merge 1 commit intonjbrake:mainfrom
zerone0x:fix/sync-idle-decay-from-settings

Conversation

@zerone0x
Copy link
Copy Markdown
Contributor

@zerone0x zerone0x commented May 7, 2026

Description

  • fetch /api/settings once on app boot and derive the web idle-decay window from theme.idle_decay_minutes
  • thread that resolved window through workspace grouping, dashboard stats, and status glyph/class helpers so fresh-idle matches the configured server value instead of a hard-coded mirror
  • add unit coverage for the settings parsing helper and keep the existing freshness helpers covered with the explicit window path
  • closes web: sync idle_decay_minutes from /api/settings instead of hard-coded mirror #874

Verification:

  • cd web && npm run test:unit -- src/lib/session.test.ts
  • cd web && npm run build

PR Type

  • New Feature
  • Bug Fix
  • Refactor
  • Documentation
  • Infrastructure / CI

Checklist

  • I understand the code I am submitting
  • New and existing tests pass
  • Documentation was updated where necessary
  • For UI changes: included screenshot or recording

AI Usage

  • No AI was used
  • AI was used for drafting/refactoring
  • This is fully AI-generated

AI Model/Tool used:
Codex (GPT-5)

Any Additional AI Details you'd like to share:
Implemented the /api/settings wiring for the web idle-decay signal directly from issue triage for #874.

  • I am an AI Agent filling out this form (check box if true)

closes njbrake#874

Co-Authored-By: Claude <noreply@anthropic.com>
@zerone0x zerone0x requested a review from njbrake as a code owner May 7, 2026 02:49
@zerone0x zerone0x closed this May 7, 2026
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.

web: sync idle_decay_minutes from /api/settings instead of hard-coded mirror

1 participant