From dd319cd0a211a17db512f1a2352498bf3e519f1b Mon Sep 17 00:00:00 2001 From: Alejandro Tamayo Date: Sat, 18 Apr 2026 12:12:08 +0200 Subject: [PATCH] FIX: Disclaimer and hamburguer --- README.md | 16 ++++++++++ src/renderer/features/usage/usage-content.tsx | 32 +++++++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 082960e66..cfa08c524 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +> **⚠️ Fork Notice:** This is a personal fork of [21st-dev/1code](https://github.com/21st-dev/1code) maintained by [@aletc1](https://github.com/aletc1). It includes additional features and fixes not yet merged upstream. For the official release, visit the [original repository](https://github.com/21st-dev/1code). + # 1Code [1Code.dev](https://1code.dev) @@ -6,6 +8,20 @@ Open-source coding agent client. Run Claude Code, Codex, and more - locally or i By [21st.dev](https://21st.dev) team +## Fork Additions + +Enhancements added in this fork on top of upstream: + +- **Per-Mode Thinking Effort** - Set Claude's thinking budget independently for Plan and Agent modes +- **Usage Statistics** - Built-in page showing Claude + Codex token and cost tracking +- **Per-Mode Default Models** - Configure default model per mode with automatic switching on mode change +- **Latest Claude Models** - Opus 4.7 and updated model list including latest Claude releases +- **Wider Chat Column** - Expanded chat area (max-w-4xl) for better readability +- **Windows Git Path Fix** - POSIX-normalized git paths so the sidebar tree view works on Windows +- **Enter / Shift+Enter Swap** - Enter submits, Shift+Enter inserts a newline (matches common conventions) + +--- + ## Highlights - **Multi-Agent Support** - Claude Code and Codex in one app, switch instantly diff --git a/src/renderer/features/usage/usage-content.tsx b/src/renderer/features/usage/usage-content.tsx index dd2b98bd7..3637cfad8 100644 --- a/src/renderer/features/usage/usage-content.tsx +++ b/src/renderer/features/usage/usage-content.tsx @@ -4,6 +4,7 @@ import { desktopViewAtom, usagePeriodAtom, usageSourceAtom, + agentsSidebarOpenAtom, type UsagePeriod, type UsageSourceFilter, } from "../agents/atoms" @@ -14,7 +15,10 @@ import { ActivityHeatmap } from "./components/activity-heatmap" import { DailyCostChart } from "./components/daily-cost-chart" import { ModelBreakdown } from "./components/model-breakdown" import { formatCompact, formatUSD } from "./lib/format" -import { RefreshCw } from "lucide-react" +import { RefreshCw, AlignJustify } from "lucide-react" +import { useIsMobile } from "../../lib/hooks/use-mobile" +import { AgentsHeaderControls } from "../agents/ui/agents-header-controls" +import { Button } from "../../components/ui/button" const PERIOD_OPTIONS: { value: UsagePeriod; label: string }[] = [ { value: "7d", label: "7d" }, @@ -33,6 +37,8 @@ export function UsageContent() { const [period, setPeriod] = useAtom(usagePeriodAtom) const [source, setSource] = useAtom(usageSourceAtom) const setDesktopView = useSetAtom(desktopViewAtom) + const [sidebarOpen, setSidebarOpen] = useAtom(agentsSidebarOpenAtom) + const isMobile = useIsMobile() useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { @@ -64,7 +70,28 @@ export function UsageContent() { }) return ( -
+
+ {/* Header bar — mirrors kanban layout */} +
+ {isMobile ? ( + + ) : ( + setSidebarOpen((prev) => !prev)} + /> + )} +
+ +
@@ -165,6 +192,7 @@ export function UsageContent() { )}
+
) }