Skip to content

Commit fd3b851

Browse files
aorwallclaude
andauthored
feat(web): show the git menu and composer context strip (pingdotgg#42)
The fork hid its version-control surface because the Moatless backend did not serve it. It does now: stacked actions, pull-request resolution and thread preparation, VCS status and refs, ref switching and diff preview are all answered, so the flag was hiding a feature that works. Removed the `versionControl` entry and both gates that named it, following the flag table's own rule — a surface is turned on by deleting its flag, not by setting it to true, so no gate is left that can never be false. Claude Opus 5 via Claude Code. Co-authored-by: Claude Opus 5 <[email protected]>
1 parent e3442b9 commit fd3b851

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ import {
197197
import { appendPreviewAnnotationPrompt } from "../lib/previewAnnotation";
198198
import { appendReviewCommentsToPrompt, type ReviewCommentContext } from "../reviewCommentContext";
199199
import { environmentCatalog } from "../connection/catalog";
200-
import { FEATURES } from "../fork/features";
201200
import { selectThreadTerminalUiState, useTerminalUiStateStore } from "../terminalUiStateStore";
202201
import { useKnownTerminalSessions, useThreadRunningTerminalIds } from "../state/terminalSessions";
203202
import { projectEnvironment } from "../state/projects";
@@ -2510,7 +2509,7 @@ function ChatViewContent(props: ChatViewProps) {
25102509
terminalUiLaunchContext?.threadId === activeThreadId ? terminalUiLaunchContext : null;
25112510
// Default true while loading to avoid toolbar flicker.
25122511
const isGitRepo = gitStatusQuery.data?.isRepo ?? true;
2513-
const showComposerContextStrip = isGitRepo && activeProject !== null && FEATURES.versionControl;
2512+
const showComposerContextStrip = isGitRepo && activeProject !== null;
25142513
const initialDiffPanelGitScope =
25152514
gitStatusQuery.data?.hasWorkingTreeChanges === true ? "unstaged" : "branch";
25162515
const diffPanelGitStatusResolutionKey = gitStatusQuery.data ? "resolved" : "pending";

‎apps/web/src/components/chat/ChatHeader.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const ChatHeader = memo(function ChatHeader({
161161
openInCwd={openInCwd}
162162
/>
163163
)}
164-
{activeProjectName && FEATURES.versionControl && (
164+
{activeProjectName && (
165165
<GitActionsControl
166166
gitCwd={gitCwd}
167167
activeThreadRef={scopeThreadRef(activeThreadEnvironmentId, activeThreadId)}

‎apps/web/src/fork/features.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
* the surface is already empty and a flag would gate nothing.
5151
*/
5252
export const FEATURES = {
53-
/** Git and VCS controls: the header's git menu and the composer's context strip. */
54-
versionControl: false,
5553
/** Project scripts: the header's actions dropdown for running project commands. */
5654
projectScripts: false,
5755
/**

0 commit comments

Comments
 (0)