Idea detail
zustand_boundary
reqlan rq/codestyle/typescript.rq:167
Summary
state_machine_mindset still applies: design UI and host flows as state machines.
Zustand is no longer used anywhere: the index lifecycle FSM ( `opening` / `syncing` / `ready` / `error` ),
counts, file issues, and the document-update ring now live in Rust `WorkspaceIndexRuntime` and are read
over napi via `statusSnapshot()` ( native_bridge ); durable diagnostics persist
in `index-diagnostics.sqlite`. TypeScript keeps no parallel copy of that state.
Do not reintroduce zustand ( or Redux-like globals ) in `packages/extension/webviews/**` or the analytical
package. Extension-host TypeScript may keep plain mutable session modules when the surface is small and
message-pushed; owned lifecycle / state machines belong in the Rust runtime.
Navigation
Attributes
| Key | Value |
|---|---|
| apply_to | *.rq".*webview*, *.rq".*_pane |
| implementation | workspace_index.rs, native-workspace-index.ts, app.svelte.ts, context-session.ts |
| status | done |
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | state_machine_mindset | reqlan rq/extension/host/architecture.rq | state_machine_mindset |
| references | native_bridge | reqlan rq/core_analysis/rust_port.rq | native_bridge |
| file_reference | "../../crates/reqlan-analytical/src/workspace_index.rs" | crates/reqlan-analytical/src/workspace_index.rs | workspace_index.rs |
| file_reference | "../../packages/analytical/src/native/native-workspace-index.ts" | packages/analytical/src/native/native-workspace-index.ts | native-workspace-index.ts |
| file_reference | "../../packages/extension/webviews/activity-bar/state/app.svelte.ts" | packages/extension/webviews/activity-bar/state/app.svelte.ts | app.svelte.ts |
| file_reference | "../../packages/extension/src/activity_bar_module/context-session.ts" | packages/extension/src/activity_bar_module/context-session.ts | context-session.ts |
| comment_link | zustand_boundary | reqlan rq/codestyle/packages/analytical/src/core/index-state-types.ts | * rq:zustand_boundary |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | ui_state_management | reqlan rq/codestyle/typescript.rq | zustand_boundary |
| references | webview_app_state | reqlan rq/codestyle/typescript.rq | zustand_boundary |
| references | state_machine_mindset | reqlan rq/extension/host/architecture.rq | zustand_boundary |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| wildcard_reference | reqlan rq/extension/**/*.rq.*webview* | *.rq".*webview* | |
| wildcard_reference | reqlan rq/extension/local-context/activitybar-panels/*.rq.*_pane | *.rq".*_pane |
Local graph
Initialising graph…