Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(code): Apply all und Reject all bleiben ausserhalb des Scroll-Deckels sichtbar

Davidd53bac69cc6a
diff --git a/src/components/chat/StagedChangesPanel.tsx b/src/components/chat/StagedChangesPanel.tsx
index 3d077cbe..18771ca8 100644
--- a/src/components/chat/StagedChangesPanel.tsx
+++ b/src/components/chat/StagedChangesPanel.tsx
@@ -183,7 +183,15 @@ export function StagedChangesPanel({ chatId }: Props) {
</div>
)
})}
+ </div>
+ )}
+ {/* Apply all and Reject all sit OUTSIDE the scroll cap. Inside it they
+ scrolled away with the diffs: with two long files the footer sat
+ under the fold of the list and a click without scrolling hit
+ nothing (t14 on the box, 2026-09-06). */}
+ {expanded && (
+ <div className="px-1.5 pb-2">
<div className="flex items-center gap-1 pt-0.5">
<button
onClick={applyAll}
diff --git a/src/components/chat/__tests__/die-karte-bleibt-erreichbar.test.ts b/src/components/chat/__tests__/die-karte-bleibt-erreichbar.test.ts
index a1014c68..66361a70 100644
--- a/src/components/chat/__tests__/die-karte-bleibt-erreichbar.test.ts
+++ b/src/components/chat/__tests__/die-karte-bleibt-erreichbar.test.ts
@@ -28,6 +28,19 @@ describe('the approval card stays reachable', () => {
expect(src).toMatch(/className="shrink-0 border-b[^"]*" data-testid="staged-changes-panel"/)
})
+ it('keeps Apply all and Reject all outside the scroll cap, so they never scroll away with the diffs', () => {
+ const src = read('../StagedChangesPanel.tsx')
+ const listOpen = src.indexOf('data-testid="staged-changes-list"')
+ const footer = src.indexOf('data-testid="apply-all"')
+ expect(listOpen).toBeGreaterThan(0)
+ expect(footer).toBeGreaterThan(listOpen)
+ // Between the list and the footer the list is closed and a second
+ // `expanded` block opens: the footer is a sibling of the list, not a child.
+ const between = src.slice(listOpen, footer)
+ expect(between).toMatch(/\{expanded && \(\s*<div className="px-1\.5 pb-2">/)
+ expect(src.indexOf('data-testid="reject-all"')).toBeGreaterThan(footer)
+ })
+
it('gives the transcript a floor so no side panel can squeeze it to nothing', () => {
const src = read('../CodexView.tsx')
expect(src).toMatch(/ref=\{scrollRef\} className="flex-1 min-h-\[10rem\] overflow-y-auto[^"]*" data-testid="codex-transcript"/)