Skip to content

Commit 3cc3b2d

Browse files
committed
Update agent CLI invocation arguments and documentation URLs
- we updated opencode to v2 and args seem to be different. Check google.
1 parent 8de9b27 commit 3cc3b2d

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎apps/editor/src/constants/agents.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const AGENTS = {
6363
example_flags: []
6464
},
6565
OpenCode: {
66-
docs_url: 'https://opencode.ai/docs/cli/',
66+
docs_url: 'https://opencode.ai/v2/docs',
6767
homepage_url: 'https://opencode.ai/',
6868
flags_placeholder: '',
6969
example_flags: []

‎apps/editor/src/utils/agentic-cli-invocation/agents/codex.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export const codex_agent: CodingAgent = {
2727
'--sandbox',
2828
'read-only'
2929
],
30-
// get_post_integrated_terminal_args: () => ['continue'], // Broken on their end
30+
get_post_integrated_terminal_args: () => [
31+
'resume',
32+
'--include-non-interactive',
33+
'--last'
34+
],
3135
parse_stream_line: (parsed, report_progress) => {
3236
if (parsed.type == 'item.started' && parsed.item) {
3337
const item = parsed.item

‎apps/editor/src/utils/agentic-cli-invocation/agents/opencode.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ export const opencode_agent: CodingAgent = {
1919
'--format',
2020
'json',
2121
'--auto',
22-
'--dir',
2322
params.cwd
2423
],
25-
get_integrated_terminal_args: (params) => ['run', '--dir', params.cwd],
26-
get_post_integrated_terminal_args: () => ['--mini', '--continue'],
24+
get_integrated_terminal_args: (params) => ['run', '--auto', params.cwd],
25+
get_post_integrated_terminal_args: () => ['--continue'],
2726
parse_stream_line: (parsed, report_progress) => {
2827
let action_name = ''
2928
if (parsed.type == 'tool_use' && parsed.part?.tool) {

‎apps/editor/src/views/prompt/frontend/i18n/translations/selected-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const selected_files = {
7272
bg: 'Агентно търсене'
7373
},
7474
'selected-files.clear-context': {
75-
en: 'Clear Context',
75+
en: 'Clear context',
7676
pl: 'Wyczyść kontekst',
7777
'zh-cn': '清除上下文',
7878
ja: 'コンテキストをクリア',

0 commit comments

Comments
 (0)