enh: enable tools with url search param

This commit is contained in:
Timothy J. Baek 2024-08-02 18:32:51 +02:00
parent dcd32faa83
commit 67efd0dd39

View File

@ -282,6 +282,10 @@
if ($page.url.searchParams.get('q')) {
prompt = $page.url.searchParams.get('q') ?? '';
selectedToolIds = ($page.url.searchParams.get('tool_ids') ?? '')
.split(',')
.map((id) => id.trim())
.filter((id) => id);
if (prompt) {
await tick();