From f9b9d6adbe10d71c3509cc9efbe7e4ec34c65845 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Mon, 19 Oct 2026 18:51:46 +0000 Subject: [PATCH] =?UTF-8?q?havre=20/open:=20labeled=20New=20chat=20button?= =?UTF-8?q?=20on=20mobile,=20hide=20=E2=8C=98=20shortcut=20hints=20on=20ph?= =?UTF-8?q?ones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BQqGFv54JJTw7p3rgGjP7C --- ventures/havre/tools/open.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ventures/havre/tools/open.sh b/ventures/havre/tools/open.sh index 87036bb..2b4a3a7 100644 --- a/ventures/havre/tools/open.sh +++ b/ventures/havre/tools/open.sh @@ -7,6 +7,13 @@ OV_REF=d983874a79810edaffb85721911630af29d09d95 src=$(mktemp -d) git clone -q https://github.com/nikshepsvn/openvenice "$src" git -C "$src" checkout -q "$OV_REF" +# Phone fixes: a labeled "New chat" button, and no ⌘ shortcut hints below md width +f="$src/src/components/layout/sidebar.tsx" +perl -0pi -e 's/aria-label="New chat"\n(\s*)className="/aria-label="New chat"\n$1className="flex items-center gap-1.5 px-2.5 py-1.5 text-[13px] border border-white\/[0.12] /' "$f" +perl -0pi -e 's/(<\/svg>)(\n\s*<\/button>\n\s*<\/div>\n\s*\{conversations\.length > 5)/$1New chat<\/span>$2/' "$f" +perl -0pi -e 's/title="New chat \(⌘N\)"/title="New chat"/' "$f" +perl -0pi -e 's/
(\n\s*
)/
$1/' "$f" +grep -q "New chat" "$f" && grep -q "hidden md:block px-3 py-2.5" "$f" (cd "$src" && npm ci --silent --no-audit --no-fund >/dev/null && npx vite build --base=/open/ >/dev/null) rm -rf open cp -R "$src/dist" open @@ -32,7 +39,7 @@ sed -i.bak 's|||' open/ind grep -q havre-key.js open/index.html cat > open/LICENSE.txt <