fix(v2): rename rune stores to .svelte.ts to fix rune_outside_svelte error
Svelte 5 $state/$derived runes only work in .svelte and .svelte.ts files. The stores had plain .ts extensions, causing a blank screen with "rune_outside_svelte" runtime error. Renamed all three store files and updated import paths across 5 consuming files.
This commit is contained in:
parent
c24e540080
commit
af1516ed2b
8 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@
|
|||
createAgentSession,
|
||||
removeAgentSession,
|
||||
type AgentSession,
|
||||
} from '../../stores/agents';
|
||||
} from '../../stores/agents.svelte';
|
||||
import type {
|
||||
AgentMessage,
|
||||
TextContent,
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
const ready = await isAgentReady();
|
||||
if (!ready) {
|
||||
createAgentSession(sessionId, text);
|
||||
const { updateAgentStatus } = await import('../../stores/agents');
|
||||
const { updateAgentStatus } = await import('../../stores/agents.svelte');
|
||||
updateAgentStatus(sessionId, 'error', 'Sidecar not ready — agent features unavailable');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue