Skip to content

fix(web): hide empty composer context strip in simple mode - #5

Merged
LAG-4 merged 1 commit into
litefrom
feat/hide-empty-composer-strip
Sep 12, 2026
Merged

fix(web): hide empty composer context strip in simple mode#5
LAG-4 merged 1 commit into
litefrom
feat/hide-empty-composer-strip

Conversation

@LAG-4

@LAG-4 LAG-4 commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Problem

In simple mode with a git-backed project, the composer rendered a second, empty box below the input: the composer context strip was mounted (because the project is a git repo) but showed nothing (git controls hidden, no environment indicator), so its empty drawer outline rendered as a detached second box above the Send button.

Fix

Gate the context strip on showGitControls instead of isGitRepo in shouldShowComposerContextStrip (BranchToolbar.logic.ts + both ChatView.tsx call sites). In simple mode showGitControls is false, so the strip no longer mounts when its only potential content is hidden git controls; non-simple mode is unchanged. Tests in BranchToolbar.logic.test.ts updated (70 passing); lint clean. Visually confirmed by the user on the isolated dev server (double box gone).

Done by opencode/big-pickle (OpenCode harness).

@LAG-4
LAG-4 merged commit 5d196b0 into lite Sep 12, 2026
5 of 13 checks passed
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Sep 12, 2026
@LAG-4
LAG-4 deleted the feat/hide-empty-composer-strip branch September 12, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant