From 1685a0dd12b54d76189a44364f41e9c7b6c449ea Mon Sep 17 00:00:00 2001 From: Alex Zaytsev <32521398+unisone@users.noreply.github.com> Date: Sun, 22 Feb 2026 12:40:06 -0500 Subject: [PATCH] fix: remove trailing newline from CLAUDE.md symlink target (#21160) * fix: remove trailing newline from CLAUDE.md symlink target * Dev tooling: prevent CLAUDE symlink newline regressions --------- Co-authored-by: Vincent Koc --- .gitattributes | 2 ++ .oxfmtrc.jsonc | 2 ++ CHANGELOG.md | 1 + CLAUDE.md | 2 +- src/gateway/server-methods/CLAUDE.md | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 6313b56c578..54fc4c9b14d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ * text=auto eol=lf +CLAUDE.md -text +src/gateway/server-methods/CLAUDE.md -text diff --git a/.oxfmtrc.jsonc b/.oxfmtrc.jsonc index 445d62b7efb..0a928d5f9ba 100644 --- a/.oxfmtrc.jsonc +++ b/.oxfmtrc.jsonc @@ -11,12 +11,14 @@ "ignorePatterns": [ "apps/", "assets/", + "CLAUDE.md", "docker-compose.yml", "dist/", "docs/_layouts/", "node_modules/", "patches/", "pnpm-lock.yaml/", + "src/gateway/server-methods/CLAUDE.md", "src/auto-reply/reply/export-html/", "Swabble/", "vendor/", diff --git a/CHANGELOG.md b/CHANGELOG.md index 21e4f7361de..07455c62481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -309,6 +309,7 @@ Docs: https://docs.openclaw.ai ### Fixes +- Dev tooling: prevent `CLAUDE.md` symlink target regressions by excluding CLAUDE symlink sentinels from `oxfmt` and marking them `-text` in `.gitattributes`, so formatter/EOL normalization cannot reintroduce trailing-newline targets. - Agents/Streaming: keep assistant partial streaming active during reasoning streams, handle native `thinking_*` stream events consistently, dedupe mixed reasoning-end signals, and clear stale mutating tool errors after same-target retry success. (#20635) Thanks @obviyus. - iOS/Chat: use a dedicated iOS chat session key for ChatSheet routing to avoid cross-client session collisions with main-session traffic. (#21139) thanks @mbelinky. - iOS/Chat: auto-resync chat history after reconnect sequence gaps, clear stale pending runs, and avoid dead-end manual refresh errors after transient disconnects. (#21135) thanks @mbelinky. diff --git a/CLAUDE.md b/CLAUDE.md index c3170642553..47dc3e3d863 120000 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1 +1 @@ -AGENTS.md +AGENTS.md \ No newline at end of file diff --git a/src/gateway/server-methods/CLAUDE.md b/src/gateway/server-methods/CLAUDE.md index c3170642553..47dc3e3d863 120000 --- a/src/gateway/server-methods/CLAUDE.md +++ b/src/gateway/server-methods/CLAUDE.md @@ -1 +1 @@ -AGENTS.md +AGENTS.md \ No newline at end of file