Skip to content

Commit fdb4c0f

Browse files
authored
Merge branch 'dev' into fix/diagnostics-success-output
2 parents fd8edf7 + 8105f18 commit fdb4c0f

82 files changed

Lines changed: 3640 additions & 808 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

STATS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,4 @@
208208
| 2026-01-20 | 5,128,999 (+267,891) | 1,903,665 (+40,553) | 7,032,664 (+308,444) |
209209
| 2026-01-21 | 5,444,842 (+315,843) | 1,962,531 (+58,866) | 7,407,373 (+374,709) |
210210
| 2026-01-22 | 5,766,340 (+321,498) | 2,029,487 (+66,956) | 7,795,827 (+388,454) |
211+
| 2026-01-23 | 6,096,236 (+329,896) | 2,096,235 (+66,748) | 8,192,471 (+396,644) |

bun.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/app",
3-
"version": "1.1.32",
3+
"version": "1.1.34",
44
"description": "",
55
"type": "module",
66
"exports": {

packages/app/src/app.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { SettingsProvider } from "@/context/settings"
1919
import { TerminalProvider } from "@/context/terminal"
2020
import { PromptProvider } from "@/context/prompt"
2121
import { FileProvider } from "@/context/file"
22+
import { CommentsProvider } from "@/context/comments"
2223
import { NotificationProvider } from "@/context/notification"
2324
import { DialogProvider } from "@opencode-ai/ui/context/dialog"
2425
import { CommandProvider } from "@/context/command"
@@ -126,13 +127,15 @@ export function AppInterface(props: { defaultUrl?: string }) {
126127
<Route
127128
path="/session/:id?"
128129
component={(p) => (
129-
<Show when={p.params.id ?? "new"} keyed>
130+
<Show when={p.params.id ?? "new"}>
130131
<TerminalProvider>
131132
<FileProvider>
132133
<PromptProvider>
133-
<Suspense fallback={<Loading />}>
134-
<Session />
135-
</Suspense>
134+
<CommentsProvider>
135+
<Suspense fallback={<Loading />}>
136+
<Session />
137+
</Suspense>
138+
</CommentsProvider>
136139
</PromptProvider>
137140
</FileProvider>
138141
</TerminalProvider>

packages/app/src/components/dialog-connect-provider.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function DialogConnectProvider(props: { provider: string }) {
187187
{(i) => (
188188
<div class="w-full flex items-center gap-x-2">
189189
<div class="w-4 h-2 rounded-[1px] bg-input-base shadow-xs-border-base flex items-center justify-center">
190-
<div class="w-2.5 h-0.5 bg-icon-strong-base hidden" data-slot="list-item-extra-icon" />
190+
<div class="w-2.5 h-0.5 ml-0 bg-icon-strong-base hidden" data-slot="list-item-extra-icon" />
191191
</div>
192192
<span>{methodLabel(i)}</span>
193193
</div>
@@ -373,6 +373,9 @@ export function DialogConnectProvider(props: { provider: string }) {
373373
})
374374

375375
onMount(async () => {
376+
if (store.authorization?.url) {
377+
platform.openLink(store.authorization.url)
378+
}
376379
const result = await globalSDK.client.provider.oauth
377380
.callback({
378381
providerID: props.provider,

packages/app/src/components/dialog-edit-project.tsx

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Icon } from "@opencode-ai/ui/icon"
66
import { createMemo, createSignal, For, Show } from "solid-js"
77
import { createStore } from "solid-js/store"
88
import { useGlobalSDK } from "@/context/global-sdk"
9+
import { useGlobalSync } from "@/context/global-sync"
910
import { type LocalProject, getAvatarColors } from "@/context/layout"
1011
import { getFilename } from "@opencode-ai/util/path"
1112
import { Avatar } from "@opencode-ai/ui/avatar"
@@ -16,6 +17,7 @@ const AVATAR_COLOR_KEYS = ["pink", "mint", "orange", "purple", "cyan", "lime"] a
1617
export function DialogEditProject(props: { project: LocalProject }) {
1718
const dialog = useDialog()
1819
const globalSDK = useGlobalSDK()
20+
const globalSync = useGlobalSync()
1921
const language = useLanguage()
2022

2123
const folderName = createMemo(() => getFilename(props.project.worktree))
@@ -71,17 +73,28 @@ export function DialogEditProject(props: { project: LocalProject }) {
7173
async function handleSubmit(e: SubmitEvent) {
7274
e.preventDefault()
7375

74-
if (!props.project.id) return
75-
7676
setStore("saving", true)
7777
const name = store.name.trim() === folderName() ? "" : store.name.trim()
7878
const start = store.startup.trim()
79-
await globalSDK.client.project.update({
80-
projectID: props.project.id,
81-
directory: props.project.worktree,
79+
80+
if (props.project.id && props.project.id !== "global") {
81+
await globalSDK.client.project.update({
82+
projectID: props.project.id,
83+
directory: props.project.worktree,
84+
name,
85+
icon: { color: store.color, override: store.iconUrl },
86+
commands: { start },
87+
})
88+
globalSync.project.icon(props.project.worktree, store.iconUrl || undefined)
89+
setStore("saving", false)
90+
dialog.close()
91+
return
92+
}
93+
94+
globalSync.project.meta(props.project.worktree, {
8295
name,
83-
icon: { color: store.color, override: store.iconUrl },
84-
commands: { start },
96+
icon: { color: store.color, override: store.iconUrl || undefined },
97+
commands: { start: start || undefined },
8598
})
8699
setStore("saving", false)
87100
dialog.close()

0 commit comments

Comments
 (0)