Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)
Python
Align integration cards and clarify Disconnect actions (#1763)
Ali Khokhar59d8267a5d16
diff --git a/e2e/test_admin_integrations.py b/e2e/test_admin_integrations.pyindex fb5321af..0cef05ab 100644--- a/e2e/test_admin_integrations.py+++ b/e2e/test_admin_integrations.py@@ -18,10 +18,16 @@ def test_codex_connect_disconnect_and_modal_paths(cards = page.locator("#view-integrations > article")expect(cards).to_have_count(2)expect(cards.nth(1)).to_contain_text(- "Use FCC's models in the Codex CLI, VS Code extension, and desktop app."+ "Use FCC's models in the Codex VS Code extension and desktop app.")+ bounds = [card.bounding_box() for card in cards.all()]+ if width == 1280:+ assert bounds[0]["y"] == bounds[1]["y"]+ assert bounds[1]["x"] > bounds[0]["x"]+ else:+ assert bounds[1]["y"] > bounds[0]["y"]opener = page.locator("#openCodexIntegration")- dialog = page.get_by_role("dialog", name="Codex", exact=True)+ dialog = page.get_by_role("dialog", name="Codex in VS Code and App", exact=True)opener.click()expect(dialog).to_be_visible()expect(page.locator("#claudeIntegrationDialog")).not_to_be_visible()@@ -52,7 +58,15 @@ def test_codex_connect_disconnect_and_modal_paths(page.locator("#confirmCodexIntegration").click()expect(dialog).not_to_be_visible()expect(opener).to_have_text("Disconnect")- expect(page.locator("#codexIntegrationStatus")).to_have_text("Connected")+ expect(page.locator("#codexIntegrationStatus")).not_to_be_visible()+ expect(opener).to_have_css("color", "rgb(239, 68, 68)")+ if width == 1280:+ buttons = [+ button.bounding_box()+ for button in page.locator(".integration-card > button").all()+ ]+ assert buttons[0]["y"] == buttons[1]["y"]+ assert buttons[0]["height"] == buttons[1]["height"]expect(page.locator("#codexIntegrationMessage")).to_have_text("Settings saved. Restart Codex and select an FCC model.")@@ -62,11 +76,15 @@ def test_codex_connect_disconnect_and_modal_paths(expect(opener).to_have_text("Disconnect")opener.click()expect(page.locator("#confirmCodexIntegration")).to_have_text("Disconnect")+ expect(page.locator("#confirmCodexIntegration")).to_have_css(+ "color", "rgb(239, 68, 68)"+ )expect(dialog.locator("#codexIntegrationFiles li")).to_have_text([str(path.resolve())])page.locator("#confirmCodexIntegration").click()expect(opener).to_have_text("Connect")+ expect(opener).to_have_css("color", "rgb(6, 16, 11)")assert tomllib.loads(path.read_text()) == {"model": "my-choice"}assert not (tmp_path / "vscode" / "settings.json").exists()assert not (tmp_path / ".claude.json").exists()@@ -119,7 +137,8 @@ def test_connect_disconnect_and_modal_dismissal(page, admin_base_url, tmp_path):action.click()expect(dialog).not_to_be_visible()expect(card_button).to_have_text("Disconnect")- expect(page.locator("#claudeIntegrationStatus")).to_have_text("Connected")+ expect(page.locator("#claudeIntegrationStatus")).not_to_be_visible()+ expect(card_button).to_have_css("color", "rgb(239, 68, 68)")expect(page.locator("#claudeIntegrationMessage")).to_contain_text("Reload VS Code")assert json.loads(path.read_text())["claudeCode.disableLoginPrompt"] is Truestate_path = tmp_path / ".claude.json"@@ -128,12 +147,14 @@ def test_connect_disconnect_and_modal_dismissal(page, admin_base_url, tmp_path):expect(card_button).to_have_text("Disconnect")card_button.click()expect(action).to_have_text("Disconnect")+ expect(action).to_have_css("color", "rgb(239, 68, 68)")expect(page.locator("#claudeIntegrationDescription")).to_contain_text("Remove")page.keyboard.press("Escape")assert json.loads(path.read_text())["claudeCode.disableLoginPrompt"] is Truecard_button.click()action.click()expect(card_button).to_have_text("Connect")+ expect(card_button).to_have_css("color", "rgb(6, 16, 11)")assert json.loads(path.read_text()) == {}assert json.loads(state_path.read_text())["hasCompletedOnboarding"] is Truediff --git a/pyproject.toml b/pyproject.tomlindex 5404466e..b26c1c23 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "free-claude-code"-version = "6.2.10"+version = "6.2.11"description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"readme = "README.md"requires-python = ">=3.14.0"diff --git a/src/free_claude_code/api/admin_static/admin.css b/src/free_claude_code/api/admin_static/admin.cssindex f8c85e0c..13e29fad 100644--- a/src/free_claude_code/api/admin_static/admin.css+++ b/src/free_claude_code/api/admin_static/admin.css@@ -259,7 +259,18 @@ textarea:focus-visible,margin: 4px 0 0 0;}-.integration-card { max-width: 400px; }+.integration-card {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ margin-bottom: 0;+}+.integration-card > button {+ margin-top: auto;+ min-height: 38px;+ padding: 6px 14px;+ font-size: 13px;+}.integration-dialog {width: min(480px, calc(100vw - 32px));max-height: calc(100vh - 32px);diff --git a/src/free_claude_code/api/admin_static/admin.js b/src/free_claude_code/api/admin_static/admin.jsindex ff6a9f0e..2e82d3f3 100644--- a/src/free_claude_code/api/admin_static/admin.js+++ b/src/free_claude_code/api/admin_static/admin.js@@ -1265,7 +1265,10 @@ function renderClaudeIntegration() {byId("openClaudeIntegration").disabled = busy;byId("confirmClaudeIntegration").textContent = busy ? "Saving…" : action;byId("confirmClaudeIntegration").disabled = busy || connected === null;+ byId("openClaudeIntegration").className = connected ? "danger-button" : "primary-button";+ byId("confirmClaudeIntegration").className = connected ? "danger-button" : "primary-button";const status = byId("claudeIntegrationStatus");+ status.hidden = connected === true;status.textContent = connected === null? (busy ? "Checking settings…" : "Could not check settings"): (connected ? "Connected" : "Not connected");@@ -1355,7 +1358,10 @@ function renderCodexIntegration() {byId("openCodexIntegration").disabled = busy;byId("confirmCodexIntegration").textContent = busy ? "Saving…" : action;byId("confirmCodexIntegration").disabled = busy || connected === null;+ byId("openCodexIntegration").className = connected ? "danger-button" : "primary-button";+ byId("confirmCodexIntegration").className = connected ? "danger-button" : "primary-button";const status = byId("codexIntegrationStatus");+ status.hidden = connected === true;status.textContent = connected === null? (busy ? "Checking settings…" : "Could not check settings"): (connected ? "Connected" : "Not connected");diff --git a/src/free_claude_code/api/admin_static/index.html b/src/free_claude_code/api/admin_static/index.htmlindex 717963fd..2fc55387 100644--- a/src/free_claude_code/api/admin_static/index.html+++ b/src/free_claude_code/api/admin_static/index.html@@ -82,7 +82,7 @@></div></section>- <section id="view-integrations" class="admin-view" data-view="integrations" hidden>+ <section id="view-integrations" class="admin-view provider-grid" data-view="integrations" hidden><article class="provider-strip integration-card"><div class="section-heading"><div>@@ -91,8 +91,8 @@<span id="claudeIntegrationStatus" class="status-pill neutral" role="status">Checking settings…</span></div></div>- <button id="openClaudeIntegration" class="primary-button" type="button" disabled>Connect</button><p id="claudeIntegrationMessage" class="message-area" role="status" hidden></p>+ <button id="openClaudeIntegration" class="primary-button" type="button" disabled>Connect</button></article><dialog id="claudeIntegrationDialog" class="integration-dialog" aria-labelledby="claudeIntegrationTitle" aria-describedby="claudeIntegrationDescription"><div class="section-heading">@@ -110,17 +110,17 @@<article class="provider-strip integration-card"><div class="section-heading"><div>- <h3>Codex</h3>- <p>Use FCC's models in the Codex CLI, VS Code extension, and desktop app.</p>+ <h3>Codex in VS Code and App</h3>+ <p>Use FCC's models in the Codex VS Code extension and desktop app.</p><span id="codexIntegrationStatus" class="status-pill neutral" role="status">Checking settings…</span></div></div>- <button id="openCodexIntegration" class="primary-button" type="button" disabled>Connect</button><p id="codexIntegrationMessage" class="message-area" role="status" hidden></p>+ <button id="openCodexIntegration" class="primary-button" type="button" disabled>Connect</button></article><dialog id="codexIntegrationDialog" class="integration-dialog" aria-labelledby="codexIntegrationTitle" aria-describedby="codexIntegrationDescription"><div class="section-heading">- <h3 id="codexIntegrationTitle">Codex</h3>+ <h3 id="codexIntegrationTitle">Codex in VS Code and App</h3><button id="closeCodexIntegration" class="ghost-button" type="button" aria-label="Close" autofocus>×</button></div><p id="codexIntegrationDescription">Configure Codex to use FCC. Your selected model stays unchanged.</p>diff --git a/uv.lock b/uv.lockindex 5c6a29cc..421acaee 100644--- a/uv.lock+++ b/uv.lock@@ -598,7 +598,7 @@ wheels = [[[package]]name = "free-claude-code"-version = "6.2.10"+version = "6.2.11"source = { editable = "." }dependencies = [{ name = "aiohttp" },