GeezerVison is showing github.com — Remove unused OpenTelemetry tracing and fix overlapping highlights (#… · meatcar/opencode@85eaa5b
File treeExpand file treeCollapse file tree Open diff view settings tui/internal/components/chat
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .opencode/agent/docs.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | --- | 2 | | -description: You MUST use this agent when writing documentation | | 2 | +description: ALWAYS use this when writing docs | 3 | 3 | --- | 4 | 4 |
| 5 | 5 | You are an expert technical documentation writer | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/package.json -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 38 | 38 | "@openauthjs/openauth": "0.4.3", | 39 | 39 | "@opencode-ai/plugin": "workspace:*", | 40 | 40 | "@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", | 48 | 41 | "@standard-schema/spec": "1.0.0", | 49 | 42 | "@zip.js/zip.js": "2.7.62", | 50 | 43 | "ai": "catalog:", | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/index.ts -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import "zod-openapi/extend" | 2 | | -import { Trace } from "./trace" | 3 | | -Trace.init() | 4 | 2 | import yargs from "yargs" | 5 | 3 | import { hideBin } from "yargs/helpers" | 6 | 4 | import { RunCommand } from "./cli/cmd/run" | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/trace/index.ts -17Lines changed: 0 additions & 17 deletions Collapse file Copy file name to clipboardExpand all lines: packages/tui/internal/components/chat/message.go +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -268,7 +268,26 @@ func renderText( | 268 | 268 | return 0 | 269 | 269 | }) | 270 | 270 |
| | 271 | + // Merge overlapping highlights to prevent duplication | | 272 | + merged := make([]highlightPart, 0) | 271 | 273 | 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 { | 272 | 291 | highlight := base.Foreground(part.color) | 273 | 292 | start, end := part.start, part.end | 274 | 293 |
| |
|