Skip to content

fix(web): sync idle decay window from settings#945

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

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

Conversation

@zerone0x
Copy link
Copy Markdown
Contributor

@zerone0x zerone0x commented May 7, 2026

Description

  • fetch /api/settings on app boot and resolve theme.idle_decay_minutes into a shared web idle-decay window
  • thread that window through dashboard/session activity helpers so fresh-idle indicators match the user's configured decay window
  • add a small unit test for the settings-to-window conversion

Closes #874.

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:

OpenClaw issue-hunter (GPT-5.4)

Any Additional AI Details you'd like to share:

Verification run in the clean temp clone:

  • npm run test:unit
  • npm run build
  • npm run lint ⚠️ fails on pre-existing react-hooks/set-state-in-effect / unused-var errors in unrelated existing files (src/App.tsx, src/components/StatusGlyph.tsx, src/hooks/useFileDiff.ts, several Playwright specs)

NOTE:
When responding to reviewer questions, please respond yourself rather than copy/pasting reviewer comments into an AI and pasting back its answer. We want to discuss with you, not your AI :)

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

@zerone0x zerone0x requested a review from njbrake as a code owner May 7, 2026 02:47
@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