Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
566816f
feat(app): remove Files tab and register changes icon
Astro-Han May 31, 2026
7362d5e
feat(app): redesign Status panel with Git and Artifact sections
Astro-Han May 31, 2026
c598169
test(app): update tests for Files tab removal
Astro-Han May 31, 2026
92d9855
fix(app): address Status panel visual review feedback
Astro-Han May 31, 2026
defd761
fix(app): align artifact row with turn-change-row design system
Astro-Han May 31, 2026
2db714f
fix(i18n): rename status panel sections to Workspace / Changed files
Astro-Han May 31, 2026
19e4f1e
fix(app): add rounded corners to artifact row hover
Astro-Han May 31, 2026
9b0046b
fix(app): unify status panel row hover to rounded-md + surface-raised
Astro-Han May 31, 2026
eb67836
fix(app): use rounded-md on sidebar session row for visual consistency
Astro-Han May 31, 2026
d4ce483
fix(app): unify status panel row heights to min-h-[30px]
Astro-Han May 31, 2026
6459670
fix(app): revert TodoRow/SourceRow to compact py-1 height
Astro-Han May 31, 2026
c5f4209
fix(app): align TodoRow/SourceRow to 26px compact row height
Astro-Han May 31, 2026
feee004
fix(app): fix branch not updating by removing createMemo wrapper on vcs
Astro-Han May 31, 2026
6d9a2f4
fix(app): use worktree branch as primary source for branch row
Astro-Han May 31, 2026
990288c
fix(app): actively refresh vcs on file watcher HEAD changes
Astro-Han May 31, 2026
07027af
revert: undo 3 branch-display fix attempts
Astro-Han May 31, 2026
b75c0fc
fix(app): address review bot findings for status panel
Astro-Han May 31, 2026
298c70b
fix(app): align status panel rows with design spec (#1013 follow-up)
Astro-Han May 31, 2026
213ebca
test(app): cover full status panel in a new snap target
Astro-Han May 31, 2026
43ef84e
fix(app): normalise artifact path key for diff stats lookup
Astro-Han May 31, 2026
a16b1e6
refactor(app): split status summary sections, restore artifact open c…
Astro-Han May 31, 2026
144531e
Merge remote-tracking branch 'origin/dev' into claude/status-panel-re…
Astro-Han Jun 3, 2026
a8e8842
Merge remote-tracking branch 'origin/dev' into claude/status-panel-re…
Astro-Han Jun 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe("buildCommandPaletteDefaultGroups", () => {
command("panel.toggle"),
command("terminal.toggle"),
command("review.toggle"),
command("fileTree.toggle"),
command("model.choose"),
command("mcp.toggle"),
command("permissions.autoaccept"),
Expand All @@ -55,7 +54,6 @@ describe("buildCommandPaletteDefaultGroups", () => {
"panel.toggle",
"terminal.toggle",
"review.toggle",
"fileTree.toggle",
"model.choose",
"mcp.toggle",
"permissions.autoaccept",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const SUGGESTED_PREFIX = "suggested."
const DEFAULT_GROUPS: readonly CommandPaletteDefaultGroup[] = [
{ id: "suggested", commandIDs: ["session.new", "project.open", "file.open", "settings.open"] },
{ id: "navigation", commandIDs: ["session.previous", "session.next", "input.focus"] },
{ id: "panels", commandIDs: ["sidebar.toggle", "panel.toggle", "terminal.toggle", "review.toggle", "fileTree.toggle"] },
{ id: "panels", commandIDs: ["sidebar.toggle", "panel.toggle", "terminal.toggle", "review.toggle"] },
{ id: "configure", commandIDs: ["model.choose", "mcp.toggle", "permissions.autoaccept"] },
]

Expand Down
24 changes: 0 additions & 24 deletions packages/app/src/components/session/session-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { canOpenLocalPath, usePlatform } from "@/context/platform"
import { useServer } from "@/context/server"
import { useShellSurface } from "@/context/shell-surface"
import { useSync } from "@/context/sync"
import { PawworkWorktreeBadge } from "@/pages/layout/pawwork-worktree-badge"
import { useSessionLayout } from "@/pages/session/session-layout"
import { decode64 } from "@/utils/base64"
import { StatusPopover } from "../status-popover"
Expand Down Expand Up @@ -42,11 +41,6 @@ export function SessionHeader() {
})
const sessionInfo = createMemo(() => (params.id ? sync.session.get(params.id) : undefined))
const sessionTitle = createMemo(() => sessionInfo()?.title || params.id || "")
const activeWorktree = createMemo(() => {
const exec = sessionInfo()?.executionContext
if (!exec || exec.activeDirectory === exec.ownerDirectory) return
return exec.activeWorktree
})
const homeTitle = createMemo(() => language.t("command.session.new"))
const onSessionRoute = createMemo(() => location.pathname.includes("/session"))
const fileManagerLabel = createMemo(() => {
Expand All @@ -55,9 +49,7 @@ export function SessionHeader() {
return language.t("session.header.open.finder")
})
const canOpenDirectory = (directory?: string) => canOpenLocalPath(platform) && server.isLocal() && !!directory
const activeWorktreeDirectory = createMemo(() => activeWorktree()?.directory ?? "")
const canOpenProjectDirectory = createMemo(() => canOpenDirectory(projectDirectory()))
const canOpenActiveWorktreeDirectory = createMemo(() => canOpenDirectory(activeWorktreeDirectory()))
const rightPanelOpen = createMemo(() => view().sidePanel.opened())
const toggleRightPanel = () => {
if (rightPanelOpen()) {
Expand All @@ -77,10 +69,6 @@ export function SessionHeader() {
})
}
const openProjectDirectory = () => openDirectory(projectDirectory())
const openActiveWorktree = () => {
openDirectory(activeWorktreeDirectory())
}

const [leftMount, setLeftMount] = createSignal<HTMLElement>()
const [rightMount, setRightMount] = createSignal<HTMLElement>()

Expand Down Expand Up @@ -124,18 +112,6 @@ export function SessionHeader() {
<span class="min-w-0 truncate">{name()}</span>
</Button>
</Show>
<Show when={activeWorktree()}>
{(worktree) => (
<PawworkWorktreeBadge
name={worktree().name}
branch={worktree().branch}
directory={worktree().directory}
onClick={openActiveWorktree}
ariaLabel={language.t("session.header.worktree.open")}
disabled={!canOpenActiveWorktreeDirectory()}
/>
)}
</Show>
</div>
</Show>
</div>
Expand Down
39 changes: 34 additions & 5 deletions packages/app/src/components/session/session-status-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { useParams } from "@solidjs/router"
import type { Part } from "@opencode-ai/sdk/v2"
import { useGlobalSync } from "@/context/global-sync"
import { useSync } from "@/context/sync"
import type { FilesTabEntry } from "@/pages/session/files-tab-state"
import { aggregateFiles } from "@/pages/session/session-aggregate-files"
import { SessionStatusSummary } from "./session-status-summary"

// `shown` is kept on the props contract: callers still gate this tab and the
// summary stays a cheap reactive read, so there is nothing here to pause when
// the tab is hidden. Connection health moved to Settings.Integrations +
// the global ConnectionHealth toast monitor (closes #862).
export function SessionStatusPanel(_props: { shown: Accessor<boolean> }) {
export function SessionStatusPanel(props: {
shown: Accessor<boolean>
artifactFiles?: Accessor<FilesTabEntry[]>
onNavigateReview?: () => void
}) {
const params = useParams()
const globalSync = useGlobalSync()
const sync = useSync()
Expand All @@ -27,13 +29,40 @@ export function SessionStatusPanel(_props: { shown: Accessor<boolean> }) {
params.id && sync.directory ? globalSync.todoHydrate.isPending(sync.directory, params.id) : false,
)

const vcs = createMemo(() => sync.data.vcs)

const activeWorktree = createMemo(() => {
if (!params.id) return undefined
const session = sync.session.get(params.id)
const exec = session?.executionContext
if (!exec) return undefined
return exec.activeWorktree
})

const diffStats = createMemo(() => {
if (!params.id) return { additions: 0, deletions: 0 }
const files = aggregateFiles(sync.data.turn_change_aggregate[params.id])
let additions = 0
let deletions = 0
for (const file of files) {
additions += file.additions
deletions += file.deletions
}
return { additions, deletions }
})

return (
<div class="h-full min-h-0 overflow-y-auto">
<SessionStatusSummary
canonical={canonical}
isAuthoritativelyInvalidated={isAuthoritativelyInvalidated}
isPending={isPending}
parts={parts}
vcs={vcs}
activeWorktree={activeWorktree}
diffStats={diffStats}
artifactFiles={props.artifactFiles}
onNavigateReview={props.onNavigateReview}
/>
</div>
)
Expand Down
Loading