Skip to content
Merged
Changes from 1 commit
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
18 changes: 14 additions & 4 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,11 @@ export function Session() {
scrollAcceleration={scrollAcceleration()}
>
<box height={1} />
<Show when={session()?.parentID && messages().length === 0}>
<box paddingLeft={3}>
<text fg={theme.textMuted}>↳ Initializing...</text>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add translations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TUI (packages/opencode) doesn't have an i18n translation framework — all user-facing strings throughout the codebase are hardcoded (no translation keys or locale files). Adding translations there would require first building the infrastructure, which is out of scope for this PR. The string remains as-is for consistency with the rest of the TUI.

</box>
</Show>
<For each={messages()}>
{(message, index) => (
<Switch>
Expand Down Expand Up @@ -2060,10 +2065,15 @@ function Task(props: ToolProps<typeof TaskTool>) {
if (!props.input.description) return ""
let content = [`${Locale.titlecase(props.input.subagent_type ?? "General")} Task — ${props.input.description}`]

if (isRunning() && tools().length > 0) {
// content[0] += ` · ${tools().length} toolcalls`
if (current()) content.push(`↳ ${Locale.titlecase(current()!.tool)} ${(current()!.state as any).title}`)
else content.push(`↳ ${tools().length} toolcalls`)
if (isRunning()) {
if (tools().length === 0) {
content.push(`↳ Starting...`)
} else if (current()) {
// content[0] += ` · ${tools().length} toolcalls`
content.push(`↳ ${Locale.titlecase(current()!.tool)} ${(current()!.state as any).title}`)
} else {
content.push(`↳ ${tools().length} toolcalls`)
}
}

if (props.part.state.status === "completed") {
Expand Down
Loading