We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f704e commit 9c8bc64Copy full SHA for 9c8bc64
packages/app/src/pages/session.tsx
@@ -91,6 +91,18 @@ export default function Page() {
91
})
92
const lastUserMessage = createMemo(() => visibleUserMessages()?.at(-1))
93
94
+ createEffect(
95
+ on(
96
+ () => lastUserMessage()?.id,
97
+ () => {
98
+ const msg = lastUserMessage()
99
+ if (!msg) return
100
+ if (msg.agent) local.agent.set(msg.agent)
101
+ if (msg.model) local.model.set(msg.model)
102
+ },
103
+ ),
104
+ )
105
+
106
const [store, setStore] = createStore({
107
clickTimer: undefined as number | undefined,
108
activeDraggable: undefined as string | undefined,
0 commit comments