graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Merge #801: preserve wrapped composer link targets (#788)
Rach Pradhane15eef6710c5
diff --cc TUI/chrome.zigindex 6ac16e06,25b9c263..5dee3d7b--- a/TUI/chrome.zig+++ b/TUI/chrome.zig@@@ -49,8 -50,14 +50,20 @@@ pub fn promptBox(self: *const Model, atry body.appendSlice(try imageChips(self, a, th.accent, th.text));try body.appendSlice(" ");}- try body.appendSlice(try self.input.viewStyled(a, th.accent, th.text));- const wrapped = try theme_mod.wrapPreferWords(a, body.items, inner);- const value = self.input.getValue();- if (value.len == 0) {- try body.appendSlice(try self.input.view(a));++ // Paste/file spans get styled emphasis; otherwise allowlisted web links++ // become OSC 8 targets. Both paths wrap with balanced link state per row.++ if (self.input.semanticSpans().len > 0) {++ try body.appendSlice(try self.input.viewStyled(a, th.accent, th.text));+ } else {- try body.appendSlice(try composer_links.inputView(a, value, self.input.cursor));++ const value = self.input.getValue();++ if (value.len == 0) {++ try body.appendSlice(try self.input.view(a));++ } else {++ try body.appendSlice(try composer_links.inputView(a, value, self.input.cursor));++ }+ }+ const max_body: usize = 8;+ const wrapped = try composer_links.wrap(a, body.items, inner, max_body);var lines = std.array_list.Managed([]const u8).init(a);var it = std.mem.splitScalar(u8, wrapped, '\n');while (it.next()) |ln| try lines.append(ln);diff --cc TUI/root.zigindex 6a3930dc,906092ec..060bf2af--- a/TUI/root.zig+++ b/TUI/root.zig@@@ -88,8 -87,9 +88,11 @@@ test_ = @import("issue_537_reviewer_tests.zig");_ = @import("issue_524_tests.zig");_ = @import("issue_737_tests.zig");+ _ = @import("issue_792_tests.zig");+ _ = @import("issue_789_tests.zig");+ _ = @import("issue_788_tests.zig");+ _ = @import("issue_798_tests.zig");+ _ = @import("composer_links.zig");_ = @import("input.zig");_ = @import("keys.zig");_ = @import("nav.zig");