Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9ab9afc
feat: auto-submit working, no flashing
ariane-emory Nov 29, 2025
7818aed
tweak: reduce submit delay to 200 ms. reducing it much more brings fl…
ariane-emory Nov 29, 2025
844d0ac
tweak: adjust delay to 350 ms for greater reliability
ariane-emory Nov 29, 2025
9fd624f
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 29, 2025
41549e4
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 29, 2025
402299a
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 29, 2025
adba2ee
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 30, 2025
2f3c7fd
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 30, 2025
f8e0184
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Nov 30, 2025
a842096
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 1, 2025
64cdf33
chore: format code
actions-user Dec 1, 2025
131fca9
Update Nix flake.lock and hashes
actions-user Dec 1, 2025
71f60bd
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 1, 2025
6d7197b
Merge upstream/dev into fix/issue-4700
ariane-emory Dec 1, 2025
c7403a5
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 2, 2025
4480f76
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 2, 2025
8197864
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 2, 2025
af98c0d
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 2, 2025
343179b
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 3, 2025
1378509
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 3, 2025
b709294
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 3, 2025
d1ddb89
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 3, 2025
05a760b
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 4, 2025
9f705fc
Merge upstream/dev into fix/issue-4700
ariane-emory Dec 4, 2025
ea32872
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 5, 2025
f81c100
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 5, 2025
7b508dc
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 6, 2025
e5028a0
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 6, 2025
7935138
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 7, 2025
2420441
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 7, 2025
b0b9ce6
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 7, 2025
8df709d
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 7, 2025
72f3006
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 8, 2025
d630ec6
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 8, 2025
01f8bc4
Fix TypeScript error: remove cacheKey from FileContents interface usage
ariane-emory Dec 8, 2025
bf1a109
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 9, 2025
79ce1db
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 9, 2025
8f3d339
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 9, 2025
4f6fb61
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 10, 2025
1444ec6
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 10, 2025
61efb55
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 10, 2025
1c0257f
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 10, 2025
81b0ea1
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 10, 2025
d8a6db2
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 10, 2025
b70da02
Fix type error: useKittyKeyboard should be boolean
ariane-emory Dec 10, 2025
b61f060
Merge remote-tracking branch 'upstream/dev' into fix/issue-4700
ariane-emory Dec 10, 2025
b830d1f
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 11, 2025
1d6c0e1
Merge branch 'dev' into fix/issue-4700
ariane-emory Dec 11, 2025
2e12dd9
fix: revert
ariane-emory Dec 11, 2025
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
3 changes: 1 addition & 2 deletions packages/desktop/src/pages/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { useSession, type LocalPTY } from "@/context/session"
import { useLayout } from "@/context/layout"
import { getDirectory, getFilename } from "@opencode-ai/util/path"
import { Terminal } from "@/components/terminal"
import { checksum } from "@opencode-ai/util/encode"


export default function Page() {
const layout = useLayout()
Expand Down Expand Up @@ -540,7 +540,6 @@ export default function Page() {
file={{
name: f().path,
contents: f().content?.content ?? "",
cacheKey: checksum(f().content?.content ?? ""),
}}
overflow="scroll"
class="pb-40"
Expand Down
4 changes: 4 additions & 0 deletions packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export type PromptRef = {
reset(): void
blur(): void
focus(): void
submit(): void
}

const PLACEHOLDERS = ["Fix a TODO in the codebase", "What is the tech stack of this project?", "Fix broken tests"]
Expand Down Expand Up @@ -404,6 +405,9 @@ export function Prompt(props: PromptProps) {
})
setStore("extmarkToPartIndex", new Map())
},
submit() {
submit()
},
})

async function submit() {
Expand Down
10 changes: 10 additions & 0 deletions packages/opencode/src/cli/cmd/tui/routes/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ export function Home() {

let prompt: PromptRef
const args = useArgs()

onMount(() => {
if (once) return
if (route.initialPrompt) {
prompt.set(route.initialPrompt)
once = true
} else if (args.prompt) {
prompt.set({ input: args.prompt, parts: [] })

// Auto-submit after a slight delay to ensure everything is initialized and avoid flashing.
// On an M1 Macbook Air, reducing delay much lower than this brings the flashing back.
setTimeout(() => {
if (prompt.focused) {
prompt.submit()
}
}, 350)

once = true
}
})
Expand Down
Loading