fix(ext/sw): review fixes — storage key, timer reset scope, imports

- Rename storage key sessionTimeoutConfig → session_timeout (plan spec)
- Only call resetTimer() for non-content-script message types so content
  script polling cannot keep the session alive
- Collapse two same-module imports into one line; add CONTENT_CALLABLE_TYPES

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken
2026-04-27 15:44:13 -04:00
parent 86621f075f
commit 101f0093a4
2 changed files with 9 additions and 7 deletions

View File

@@ -361,7 +361,7 @@ export async function handle(
case 'update_session_config': {
sessionTimer.setConfig(msg.config);
sessionTimer.resetTimer();
await chrome.storage.local.set({ sessionTimeoutConfig: msg.config });
await chrome.storage.local.set({ session_timeout: msg.config });
return { ok: true };
}
}