Idea detail
refresh_rediscovers_bases
reqlan rq/bases/base.rq:234
Summary
Manual Refresh ( command `reqlan.refreshIndex`, activity-bar / Ideas Summary Refresh buttons )
and Clear & rebuild must **always rediscover** `.reqlan` markers under workspace roots before
soft-sync or rebuild. Do not skip discovery when bases are already registered — a new nested
or sibling base created on disk must appear after Refresh.
Discovery and registration live in base-registry.ts ( `refresh` → `rediscover` → optional
`ensureBaseReady` for the active base ). The extension adapter ( index-service.ts ) calls
that analytical API; it must not invent a parallel discovery walk.
Create Base follows the same refresh path after create-base.ts so the new marker is visible
immediately ( create_base_onboarding ).
Related: multi_base_environment, indexing_trigger_manual,
event_driven_base_access.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | base-registry.ts, index-service.ts, register-commands.ts, activity-bar-webview-provider.ts, ideas-summary-panel.ts, WorkspacePane.svelte, IndexPanel.svelte |
| status | done |
| tests | base-registry-refresh.test.ts:refresh rediscovers a base created after an empty discovery, base-registry-refresh.test.ts:refresh rediscovers a nested base added after first discovery, base-registry-refresh.test.ts:refresh after createBase registers the new base, refresh-rediscovers-bases.test.ts:IndexService.syncWorkspace calls registry.refresh, refresh-rediscovers-bases.test.ts:IndexService.createBase calls createBase then registry.refresh, refresh-rediscovers-bases.test.ts:reqlan.refreshIndex command uses syncWorkspace |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | create_base_onboarding | reqlan rq/bases/base.rq | refresh_rediscovers_bases |
| references | indexing_trigger_manual | reqlan rq/extension/index-host/graph-analysers.rq | refresh_rediscovers_bases |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…