feat(tui): project picker with footer crossfade (#39566)

This commit is contained in:
Kit Langton 2026-07-30 10:39:22 -04:00 committed by GitHub
commit 77aa85c589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 145 additions and 6 deletions

View file

@ -27,10 +27,11 @@ export function Home() {
const data = useData()
const location = useLocation()
// Global MCP elicitations can arrive without a session route, so keep them reachable from Home.
const forms = createMemo(() => data.session.form.list("global", data.location.default()) ?? [])
const currentLocation = () => route.location ?? data.location.default()
const forms = createMemo(() => data.session.form.list("global", currentLocation()) ?? [])
let sent = false
createEffect(() => location.set(data.location.default()))
createEffect(() => location.set(currentLocation()))
onMount(() => {
editor.clearSelection()