Skip to content

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 chat messages to transcript edges (#1630)

Ali Khokhar82d93359efa1
diff --git a/e2e/test_chat_sessions.py b/e2e/test_chat_sessions.py
index c61fd9d8..f562a276 100644
--- a/e2e/test_chat_sessions.py
+++ b/e2e/test_chat_sessions.py
@@ -709,17 +709,27 @@ def test_chat_uses_desktop_width_with_one_responsive_gutter(
) -> None:
page.set_viewport_size({"width": 1_600, "height": 900})
_new_chat(page, admin_base_url)
+ page.get_by_role("textbox", name="Message", exact=True).fill("hello")
+ page.get_by_role("button", name="Send").click()
+ expect(page.get_by_text("E2E answer")).to_be_visible()
+ page.reload()
+ expect(page.get_by_text("E2E answer")).to_be_visible()
layout = page.locator(".chat-session-shell").evaluate(
"""shell => {
const main = document.querySelector(".main").getBoundingClientRect();
const shellBox = shell.getBoundingClientRect();
const composer = shell.querySelector(".chat-composer").getBoundingClientRect();
+ const transcript = shell.querySelector(".chat-transcript").getBoundingClientRect();
+ const user = shell.querySelector(".user-message").getBoundingClientRect();
+ const assistant = shell.querySelector(".assistant-message").getBoundingClientRect();
return {
shellShare: shellBox.width / main.width,
composerShare: composer.width / main.width,
leftGutter: composer.left - shellBox.left,
rightGutter: shellBox.right - composer.right,
+ userRightGap: transcript.right - user.right,
+ assistantLeftGap: assistant.left - transcript.left,
};
}"""
)
@@ -729,6 +739,8 @@ def test_chat_uses_desktop_width_with_one_responsive_gutter(
assert layout["leftGutter"] < 0.5
assert layout["rightGutter"] < 0.5
assert abs(layout["leftGutter"] - layout["rightGutter"]) < 0.5
+ assert abs(layout["userRightGap"]) < 0.5
+ assert abs(layout["assistantLeftGap"]) < 0.5
def test_chat_rename_prompt_and_delete(
diff --git a/pyproject.toml b/pyproject.toml
index 273b1557..cb0eb753 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "5.18.6"
+version = "5.18.7"
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/chat_sessions.css b/src/free_claude_code/api/admin_static/chat_sessions.css
index dbbcffdf..2e604010 100644
--- a/src/free_claude_code/api/admin_static/chat_sessions.css
+++ b/src/free_claude_code/api/admin_static/chat_sessions.css
@@ -258,7 +258,7 @@
.chat-message {
max-width: 1120px;
- margin: 0 auto 22px;
+ margin: 0 0 22px;
border-radius: var(--radius-lg);
}
diff --git a/uv.lock b/uv.lock
index 88c50db3..8bb5c379 100644
--- a/uv.lock
+++ b/uv.lock
@@ -598,7 +598,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "5.18.6"
+version = "5.18.7"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },