Focus request/folder after creation

This commit is contained in:
Gregory Schier
2025-11-11 14:11:43 -08:00
parent 8164a61376
commit 7b6278405c
19 changed files with 138 additions and 86 deletions

View File

@@ -7,7 +7,9 @@ import { jotaiStore } from '../lib/jotai';
const requestUpdateKeyAtom = atom<Record<string, string>>({});
getCurrentWebviewWindow()
.listen<ModelPayload>('upserted_model', ({ payload }) => {
.listen<ModelPayload>('model_write', ({ payload }) => {
if (payload.change.type !== 'upsert') return;
if (
(payload.model.model === 'http_request' ||
payload.model.model === 'grpc_request' ||