This repository was archived by the owner on Feb 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-27
lines changed
tui/internal/components/chat Expand file tree Collapse file tree 5 files changed +20
-27
lines changed Original file line number Diff line number Diff line change 11---
2- description : You MUST use this agent when writing documentation
2+ description : ALWAYS use this when writing docs
33---
44
55You are an expert technical documentation writer
Original file line number Diff line number Diff line change 3838 "@openauthjs/openauth" : " 0.4.3" ,
3939 "@opencode-ai/plugin" : " workspace:*" ,
4040 "@opencode-ai/sdk" : " workspace:*" ,
41- "@opentelemetry/auto-instrumentations-node" : " 0.62.0" ,
42- "@opentelemetry/exporter-jaeger" : " 2.0.1" ,
43- "@opentelemetry/exporter-otlp-http" : " 0.26.0" ,
44- "@opentelemetry/exporter-trace-otlp-http" : " 0.203.0" ,
45- "@opentelemetry/instrumentation-fetch" : " 0.203.0" ,
46- "@opentelemetry/sdk-node" : " 0.203.0" ,
47- "@opentelemetry/sdk-trace-node" : " 2.0.1" ,
4841 "@standard-schema/spec" : " 1.0.0" ,
4942 "@zip.js/zip.js" : " 2.7.62" ,
5043 "ai" : " catalog:" ,
Original file line number Diff line number Diff line change 11import "zod-openapi/extend"
2- import { Trace } from "./trace"
3- Trace . init ( )
42import yargs from "yargs"
53import { hideBin } from "yargs/helpers"
64import { RunCommand } from "./cli/cmd/run"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -268,7 +268,26 @@ func renderText(
268268 return 0
269269 })
270270
271+ // Merge overlapping highlights to prevent duplication
272+ merged := make ([]highlightPart , 0 )
271273 for _ , part := range highlights {
274+ if len (merged ) == 0 {
275+ merged = append (merged , part )
276+ continue
277+ }
278+
279+ last := & merged [len (merged )- 1 ]
280+ // If current part overlaps with the last one, merge them
281+ if part .start <= last .end {
282+ if part .end > last .end {
283+ last .end = part .end
284+ }
285+ } else {
286+ merged = append (merged , part )
287+ }
288+ }
289+
290+ for _ , part := range merged {
272291 highlight := base .Foreground (part .color )
273292 start , end := part .start , part .end
274293
You can’t perform that action at this time.
0 commit comments