Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Rework chat header actions and GitActions styling

Julius Marmingeb7af14ad3f0a
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx
index d490f7443..ceefd6ad7 100644
--- a/apps/web/src/components/ChatView.tsx
+++ b/apps/web/src/components/ChatView.tsx
@@ -654,12 +654,6 @@ export default function ChatView() {
{activeProject.name}
</span>
)}
- {activeThread.branch && (
- <span className="rounded-full bg-accent px-2 py-0.5 font-mono text-[10px] text-muted-foreground/50">
- {activeThread.branch}
- {activeThread.worktreePath ? " (worktree)" : ""}
- </span>
- )}
</div>
<div className="flex items-center gap-3">
{/* Open in editor */}
@@ -695,18 +689,8 @@ export default function ChatView() {
)}
{/* Git actions */}
{activeProject && <GitActionsControl api={api} gitCwd={gitCwd} />}
+
{/* Diff toggle */}
- <button
- type="button"
- className={`rounded-md px-2 py-1 text-[10px] transition-colors duration-150 ${
- activeThread.terminalOpen
- ? "bg-accent text-foreground"
- : "text-muted-foreground/40 hover:text-muted-foreground/60"
- }`}
- onClick={toggleTerminalVisibility}
- >
- Terminal <span className="text-muted-foreground/50">{terminalShortcutHint}</span>
- </button>
<button
type="button"
className={`rounded-md px-2 py-1 text-[10px] transition-colors duration-150 ${
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index bd1ef53ad..fcbd9e0f1 100644
--- a/apps/web/src/components/GitActionsControl.tsx
+++ b/apps/web/src/components/GitActionsControl.tsx
@@ -551,7 +551,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
<div className="relative" ref={gitMenuRef}>
<button
type="button"
- className="inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-1 text-[10px] text-muted-foreground/70 transition-colors duration-150 hover:bg-accent hover:text-foreground/80 disabled:cursor-not-allowed disabled:opacity-60"
+ className="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-[10px] text-muted-foreground/70 transition-colors duration-150 hover:bg-accent hover:text-foreground/80 disabled:cursor-not-allowed disabled:opacity-60"
onClick={() => {
if (!isGitMenuOpen) {
void refreshGitStatus().catch(() => undefined);
@@ -798,7 +798,11 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
)}
<button
type="button"
- className="rounded-xl border border-border px-4 py-2 text-sm text-foreground transition-colors duration-150 hover:bg-accent disabled:cursor-not-allowed disabled:opacity-60"
+ className={
+ gitModalResult
+ ? "rounded-xl bg-foreground px-4 py-2 text-sm font-medium text-background transition-colors duration-150 hover:bg-foreground/90 disabled:cursor-not-allowed disabled:opacity-60"
+ : "rounded-xl border border-border px-4 py-2 text-sm text-foreground transition-colors duration-150 hover:bg-accent disabled:cursor-not-allowed disabled:opacity-60"
+ }
onClick={closeGitActionModal}
disabled={isGitActionRunning}
>