@@ -1411,13 +1411,6 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass |
1411 | 1411 | // OpenRouter sends encrypted reasoning data that appears as [REDACTED] |
1412 | 1412 | return props.part.text.replace("[REDACTED]", "").trim() |
1413 | 1413 | }) |
1414 | | - const streaming = createMemo(() => { |
1415 | | - if (!props.last) return false |
1416 | | - if (props.part.time.end) return false |
1417 | | - if (props.message.time.completed) return false |
1418 | | - if (props.message.error) return false |
1419 | | - return true |
1420 | | - }) |
1421 | 1414 | return ( |
1422 | 1415 | <Show when={content() && ctx.showThinking()}> |
1423 | 1416 | <box |
@@ -1432,7 +1425,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass |
1432 | 1425 | <code |
1433 | 1426 | filetype="markdown" |
1434 | 1427 | drawUnstyledText={false} |
1435 | | - streaming={streaming()} |
| 1428 | + streaming={true} |
1436 | 1429 | syntaxStyle={subtleSyntax()} |
1437 | 1430 | content={"_Thinking:_ " + content()} |
1438 | 1431 | conceal={ctx.conceal()} |
@@ -1446,34 +1439,23 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass |
1446 | 1439 | function TextPart(props: { last: boolean; part: TextPart; message: AssistantMessage }) { |
1447 | 1440 | const ctx = use() |
1448 | 1441 | const { theme, syntax } = useTheme() |
1449 | | - const streaming = createMemo(() => { |
1450 | | - if (!props.last) return false |
1451 | | - if (props.part.time?.end) return false |
1452 | | - if (props.message.time.completed) return false |
1453 | | - if (props.message.error) return false |
1454 | | - return true |
1455 | | - }) |
1456 | 1442 | return ( |
1457 | 1443 | <Show when={props.part.text.trim()}> |
1458 | 1444 | <box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}> |
1459 | 1445 | <Switch> |
1460 | 1446 | <Match when={Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}> |
1461 | 1447 | <markdown |
1462 | 1448 | syntaxStyle={syntax()} |
1463 | | - streaming={streaming()} |
| 1449 | + streaming={true} |
1464 | 1450 | content={props.part.text.trim()} |
1465 | 1451 | conceal={ctx.conceal()} |
1466 | | - tableOptions={{ |
1467 | | - widthMode: "full", |
1468 | | - columnFitter: "balanced", |
1469 | | - }} |
1470 | 1452 | /> |
1471 | 1453 | </Match> |
1472 | 1454 | <Match when={!Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}> |
1473 | 1455 | <code |
1474 | 1456 | filetype="markdown" |
1475 | 1457 | drawUnstyledText={false} |
1476 | | - streaming={streaming()} |
| 1458 | + streaming={true} |
1477 | 1459 | syntaxStyle={syntax()} |
1478 | 1460 | content={props.part.text.trim()} |
1479 | 1461 | conceal={ctx.conceal()} |
@@ -1997,8 +1979,8 @@ function Task(props: ToolProps<typeof TaskTool>) { |
1997 | 1979 |
|
1998 | 1980 | if (isRunning() && tools().length > 0) { |
1999 | 1981 | // content[0] += ` · ${tools().length} toolcalls` |
2000 | | - if (current()) content.push(`└ ${Locale.titlecase(current()!.tool)} ${(current()!.state as any).title}`) |
2001 | | - else content.push(`└ Running...`) |
| 1982 | + if (current()) content.push(`⤷ ${Locale.titlecase(current()!.tool)} ${(current()!.state as any).title}`) |
| 1983 | + else content.push(`⤷ ${tools().length} toolcalls`) |
2002 | 1984 | } |
2003 | 1985 |
|
2004 | 1986 | if (props.part.state.status === "completed") { |
|