惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
G
Google Developers Blog
J
Java Code Geeks
N
Netflix TechBlog - Medium
博客园 - 聂微东
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
雷峰网
雷峰网
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(macos): drop Textual from chat packaging · openclaw/o...
vincentkoc · 2026-06-24 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -20,6 +20,7 @@ let package = Package(

2020

.package(url: "https://github.com/apple/swift-log.git", from: "1.10.1"),

2121

.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.9.0"),

2222

.package(url: "https://github.com/steipete/Peekaboo.git", exact: "3.5.2"),

23+

.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.3.1"),

2324

.package(path: "../shared/OpenClawKit"),

2425

.package(path: "../swabble"),

2526

],

@@ -54,6 +55,7 @@ let package = Package(

5455

.product(name: "Sparkle", package: "Sparkle"),

5556

.product(name: "PeekabooBridge", package: "Peekaboo"),

5657

.product(name: "PeekabooAutomationKit", package: "Peekaboo"),

58+

.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),

5759

],

5860

exclude: [

5961

"Resources/Info.plist",

Original file line numberDiff line numberDiff line change

@@ -19,7 +19,6 @@ let package = Package(

1919

],

2020

dependencies: [

2121

.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.1"),

22-

.package(url: "https://github.com/gonzalezreal/textual", exact: "0.3.1"),

2322

],

2423

targets: [

2524

.target(

@@ -45,10 +44,6 @@ let package = Package(

4544

name: "OpenClawChatUI",

4645

dependencies: [

4746

"OpenClawKit",

48-

.product(

49-

name: "Textual",

50-

package: "textual",

51-

condition: .when(platforms: [.macOS, .iOS])),

5247

],

5348

path: "Sources/OpenClawChatUI",

5449

swiftSettings: [

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,5 @@

1+

import Foundation

12

import SwiftUI

2-

import Textual

33
44

public enum ChatMarkdownVariant: String, CaseIterable, Sendable {

55

case standard

@@ -22,46 +22,28 @@ struct ChatMarkdownRenderer: View {

2222

var body: some View {

2323

let processed = ChatMarkdownPreprocessor.preprocess(markdown: self.text)

2424

VStack(alignment: .leading, spacing: 10) {

25-

StructuredText(markdown: processed.cleaned)

26-

.modifier(ChatMarkdownStyle(

27-

variant: self.variant,

28-

context: self.context,

29-

font: self.font,

30-

textColor: self.textColor))

25+

Text(self.markdownText(processed.cleaned))

26+

.font(self.font)

27+

.foregroundStyle(self.textColor)

28+

.tint(self.linkColor)

29+

.textSelection(.enabled)

30+

.lineSpacing(self.variant == .compact ? 2 : 4)

3131
3232

if !processed.images.isEmpty {

3333

InlineImageList(images: processed.images)

3434

}

3535

}

3636

}

37-

}

38-
39-

private struct ChatMarkdownStyle: ViewModifier {

40-

let variant: ChatMarkdownVariant

41-

let context: ChatMarkdownRenderer.Context

42-

let font: Font

43-

let textColor: Color

4437
45-

func body(content: Content) -> some View {

46-

Group {

47-

if self.variant == .compact {

48-

content.textual.structuredTextStyle(.default)

49-

} else {

50-

content.textual.structuredTextStyle(.gitHub)

51-

}

52-

}

53-

.font(self.font)

54-

.foregroundStyle(self.textColor)

55-

.textual.inlineStyle(self.inlineStyle)

56-

.textual.textSelection(.enabled)

38+

private var linkColor: Color {

39+

self.context == .user ? self.textColor : OpenClawChatTheme.accent

5740

}

5841
59-

private var inlineStyle: InlineStyle {

60-

let linkColor: Color = self.context == .user ? self.textColor : OpenClawChatTheme.accent

61-

let codeScale: CGFloat = self.variant == .compact ? 0.85 : 0.9

62-

return InlineStyle()

63-

.code(.monospaced, .fontScale(codeScale))

64-

.link(.foregroundColor(linkColor))

42+

private func markdownText(_ markdown: String) -> AttributedString {

43+

let options = AttributedString.MarkdownParsingOptions(

44+

interpretedSyntax: .full,

45+

failurePolicy: .returnPartiallyParsedIfPossible)

46+

return (try? AttributedString(markdown: markdown, options: options)) ?? AttributedString(markdown)

6547

}

6648

}

6749
Original file line numberDiff line numberDiff line change

@@ -304,33 +304,6 @@ else

304304

exit 1

305305

fi

306306
307-

echo "📦 Copying Textual resources"

308-

TEXTUAL_BUNDLE_DIR="$(build_path_for_arch "$PRIMARY_ARCH")/$BUILD_CONFIG"

309-

TEXTUAL_BUNDLE=""

310-

for candidate in \

311-

"$TEXTUAL_BUNDLE_DIR/textual_Textual.bundle" \

312-

"$TEXTUAL_BUNDLE_DIR/Textual_Textual.bundle"

313-

do

314-

if [ -d "$candidate" ]; then

315-

TEXTUAL_BUNDLE="$candidate"

316-

break

317-

fi

318-

done

319-

if [ -z "$TEXTUAL_BUNDLE" ]; then

320-

TEXTUAL_BUNDLE="$(find "$BUILD_ROOT" -type d \( -name "textual_Textual.bundle" -o -name "Textual_Textual.bundle" \) -print -quit)"

321-

fi

322-

if [ -n "$TEXTUAL_BUNDLE" ] && [ -d "$TEXTUAL_BUNDLE" ]; then

323-

rm -rf "$APP_ROOT/Contents/Resources/$(basename "$TEXTUAL_BUNDLE")"

324-

cp -R "$TEXTUAL_BUNDLE" "$APP_ROOT/Contents/Resources/"

325-

else

326-

if [[ "${ALLOW_MISSING_TEXTUAL_BUNDLE:-0}" == "1" ]]; then

327-

echo "WARN: Textual resource bundle not found (continuing due to ALLOW_MISSING_TEXTUAL_BUNDLE=1)" >&2

328-

else

329-

echo "ERROR: Textual resource bundle not found. Set ALLOW_MISSING_TEXTUAL_BUNDLE=1 to bypass." >&2

330-

exit 1

331-

fi

332-

fi

333-
334307

running_packaged_app_pids() {

335308

command -v pgrep >/dev/null 2>&1 || return 0

336309

local app_binary="$APP_ROOT/Contents/MacOS/OpenClaw"

Original file line numberDiff line numberDiff line change

@@ -387,13 +387,15 @@ describe("package-mac-app plist stamping", () => {

387387

script.indexOf(

388388

'OPENCLAWKIT_BUNDLE="$(build_path_for_arch "$PRIMARY_ARCH")/$BUILD_CONFIG/OpenClawKit_OpenClawKit.bundle"',

389389

),

390-

script.indexOf('echo "📦 Copying Textual resources"'),

390+

script.indexOf("running_packaged_app_pids()"),

391391

);

392392
393393

expect(openClawKitBlock).toContain("ERROR: OpenClawKit resource bundle not found");

394394

expect(openClawKitBlock).toContain("exit 1");

395395

expect(openClawKitBlock).not.toContain("WARN:");

396396

expect(openClawKitBlock).not.toContain("continuing");

397+

expect(script).not.toContain("Textual resource bundle");

398+

expect(script).not.toContain("ALLOW_MISSING_TEXTUAL_BUNDLE");

397399

});

398400
399401

it("does not mask required Info.plist stamp failures", () => {