Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Show a failed 1Password connect inside its dialog
aivsomkar0256a5b3fcd1
diff --git a/src/components/VaultSettings.test.ts b/src/components/VaultSettings.test.tsindex 561bfec73f..43bdcf7eb5 100644--- a/src/components/VaultSettings.test.ts+++ b/src/components/VaultSettings.test.ts@@ -194,7 +194,7 @@ describe("Settings → Vault: logins", () => {await type("onePasswordToken", "ops_fake-wrong");await act(async () => inDialog("Connect 1Password").click());await act(async () => { await new Promise((resolve) => setTimeout(resolve, 0)); });- expect(host.querySelector("[data-onepassword] [role=alert]")!.textContent).toBe("1Password did not accept the token.");+ expect(document.body.querySelector("[data-settings-dialog] [role=alert]")?.textContent).toBe("1Password did not accept the token.");});it("is for admins only", async () => {diff --git a/src/components/VaultSettings.tsx b/src/components/VaultSettings.tsxindex a68451b20c..19f8907497 100644--- a/src/components/VaultSettings.tsx+++ b/src/components/VaultSettings.tsx@@ -372,7 +372,7 @@ function OnePasswordConnection({ status, disabled, bots, botNames, onChange }: {{status.vaults.map((vault) => <VaultAccess key={vault.id} vault={vault} bots={bots} botNames={botNames} disabled={disabled} onChange={onChange} />)}</ul>)}- {error && <p role="alert" className="text-[12px] leading-4 text-danger">{error}</p>}+ {error && !open && <p role="alert" className="text-[12px] leading-4 text-danger">{error}</p>}{open && !status.connected && (<SettingsDialog title={t("settings.vault.connectManager")} onClose={() => setOpen(false)}footer={<>@@ -387,6 +387,7 @@ function OnePasswordConnection({ status, disabled, bots, botNames, onChange }: {<input name="onePasswordToken" type="password" autoComplete="off" spellCheck={false} maxLength={8192} value={token}onChange={(event) => setToken(event.target.value)} disabled={disabled || busy !== null} className={SETTINGS_INPUT} /></SettingsField>+ {error && <p role="alert" className="text-[12px] leading-4 text-danger">{error}</p>}</form></SettingsDialog>)}