Skip to content

platform-readings: the PR-body footer has two spellings, so a 不送页脚 strip that matches only the bare one strands the session-URL one mid-body #18522

Description

@os-warren

A refinement to a fact already in the table, measured while hitting it. references/platform-readings.md records that a bare REST PATCH /pulls/{n} appends a bare footer while preserving an existing session-URL footer, differing by exactly 58 bytes, and that the prescription for that cell is 「不送页脚」. What it does not say is that the two footers are different STRINGS, and that is what makes the prescription hard to execute correctly.

The measurement

PR #18492's body, 2026-09-16T19:2xZ. The seat refreshed a stale body: read it, edited three passages, appended a section, and stripped what it believed was the trailing footer before sending.

leg reading
the footer the existing body carried _Generated by [Claude Code](https://claude.ai/code/session_01KB5PFtxuy1x3dcR5gxu…)_ — the session-URL spelling
the footer the strip matched _Generated by [Claude Code](https://claude.ai/code)_ — the bare spelling
result of PATCH #1 read-back delta +58 bytes (the channel's append, as documented) and 2 footers: the session-URL one stranded MID-BODY, where the old body used to end, plus the bare one at the tail
result of PATCH #2, payload carrying zero footers read-back delta +58 bytes, 1 footer, body correct

So the documented delta held exactly both times; what varied was how many footers survived, and that turned on a string mismatch the table does not warn about.

Why it matters beyond cosmetics

The prescription 「不送页脚」 is only executable if the writer can find the footer to remove. A seat that greps for the bare spelling — the one the channel appends, and therefore the one most seats have seen — will silently leave a session-URL footer behind, and on an append-style edit it ends up in the middle of the body rather than at the end, where it reads as the end of the document. On a PR that lands through a squash queue the body becomes the commit message, so a footer in the middle of it is permanent.

Suggested line, beside the existing cell

页脚有两种拼写:通道追加的是裸 URL 版,既有正文常带 session-URL 版。⇒ 「不送页脚」的实现要两种都剥(正则匹配 claude.ai/codeclaude.ai/code/session_* 两形),只剥裸版会把 session 版留在正文中段;回读数页脚个数,⛔ 不只看 58 字节的差。

Dedupe words: PATCH /pulls footer, session-URL footer spelling, 不送页脚, body footer duplication, squash body commit message.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions