You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate and tighten runtime and agent handling, fix event listener stability, and improve UX/error handling.
Key changes:
- server/config: validate DASHBOARD_DENSITY against allowed values (compact/comfortable) and default to comfortable.
- runtime-config: remove configuredAgentUrl from runtime shape to avoid exposing internal URL.
- types/agent & agent-config-manager: make agent.token optional (undefined by default) and remove required-token validation to support env-managed agents.
- AgentFormModal: ensure token field is initialized to an empty string when missing.
- DashboardSidebar: render disabled sidebar items as <button> with aria-disabled and preventDefault for better accessibility.
- map component: use refs and stable callback handlers for locationfound/locationerror to ensure proper add/remove of listeners and avoid stale closures.
- place-autocomplete: keep onResultsChange in a ref and call it when results clear or on errors; remove it from effect deps to avoid unnecessary fetches.
- useLogFetcher: memoize returned state and reset function, useCallback for resetAndLoadRecent, and rely on clearLogsFromIDB to handle its own errors.
- AgentContext: surface a toast on agent refresh failure and handle AbortError specially when checking agent status.
- LogContext: remove redundant useMemo and return logFetcher state directly.
These changes improve stability, avoid exposing internal configuration, and make UI interactions and async flows more resilient.
0 commit comments