Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion packages/app/src/pages/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ export default function Page() {
)
const vcsQuery = createQuery(() => {
const mode = vcsMode()
const enabled = wantsReview() && sync.project?.vcs === "git"
const enabled = !sync.data.config.experimental?.disable_vcs_diff && wantsReview() && sync.project?.vcs === "git"

return {
queryKey: [...vcsKey(), mode] as const,
Expand Down
3 changes: 3 additions & 0 deletions packages/opencode/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ export const Info = Schema.Struct({
experimental: Schema.optional(
Schema.Struct({
disable_paste_summary: Schema.optional(Schema.Boolean),
disable_vcs_diff: Schema.optional(Schema.Boolean).annotate({
description: "Disable live VCS diff queries in the app session review UI",
}),
batch_tool: Schema.optional(Schema.Boolean).annotate({ description: "Enable the batch tool" }),
openTelemetry: Schema.optional(Schema.Boolean).annotate({
description: "Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag)",
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/js/src/v2/gen/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,10 @@ export type Config = {
}
experimental?: {
disable_paste_summary?: boolean
/**
* Disable live VCS diff queries in the app session review UI
*/
disable_vcs_diff?: boolean
/**
* Enable the batch tool
*/
Expand Down
Loading