Repository navigation
Description
Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.
Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: ffb81514161f4668afd7b337eb787ab8
Branch: dev/3-social-reason-whole
Base: 2d81af3
At: 2026-11-12T06:20:42Z
Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment.
Written-by: FlyBot Lead
What happens
The Settings line that #2949 (#2946) added prints the host's own reason for a refused saved server through settingsName() — the 80-character cap that was written for names. The plain-http reason is 99 characters, so the page draws:
The server saved here (http://social.example) cannot be used: The address must start with https://. Plain http:// is only accepted for localho. Using the profile default (http://127.0.0.1:1).
It is cut mid-word at localho., with no ellipsis, and the sentence's own trailing dot makes it read like a typo. A longer saved address would be cut the same way.
Reproduction
On live main, mount the real plugins/social/client.js over a social/server answer that carries a refused saved choice:
{ server: 'http://127.0.0.1:1', source: 'config',
saved: { address: 'http://social.example',
problem: 'The address must start with https://. Plain http:// is only accepted for localhost, for development' } }Observed: the hint ends …only accepted for localho. (80 chars). Expected: the reason is displayed whole, ending for localhost, for development.
Expected
The reason is a sentence, not a name, so it must not go through the name cap. Render it whole when it fits; if a reason is genuinely too long, cut it at a word boundary and mark the cut with … — never mid-word, never silently. The address rendering stays as it is.
Scope
plugins/social/client.js only (the new server-saved-unusable hint), plus the tests that read that hint. No host change: plugins/social/src/server-config.js already caps the reason at 200 characters, which is fine. No client bundle work (core/src/client/**, core/client.js, patches/ds-bot/0008 are untouched). Red first: two cases — the plain-http reason must end for localhost, for development, and a deliberately over-long reason must end with … at a word boundary.
Dedupe (2026-11-12, open + closed)
settingsName 0 hits; "localho" truncat 0; the only "cannot be used" saved server hits are #2946/#2948/#2949, all closed and none about the cut. No same-shape issue.
Activity
Birfy commentedon Nov 12, 2026
Triage 查重(2026-11-12T06:40Z,读 api.github.com,main/base 2d81af3):
与 #2946 相邻但不同,不算重复。
3c8453276c30)修的是「保存的服务器地址不可用时被静默丢弃、页面只说 Profile default」——缺的是saved这个事实本身。saved已经有了(social: name a saved server address that cannot be used #2949 已合),缺陷在渲染:plugins/social/client.js:3852把view.saved.problem也送进了 :3715 的settingsName(),而那是名字的 80 字上限,于是理由在第 80 字处被切断(…only accepted for localho.)。8cbf069a)跟。Birfy commentedon Nov 12, 2026
Written-by: Triage
Dedupe check (2026-11-12T06:50:33Z): 与 #2946 相邻但不同,不是重复。
3c8453276c30,合入时间 2026-11-12T06:08:34Z(改plugins/social/client.js、plugins/social/src/server-config.js),解决的是「不可用的 saved server 被静默丢弃、页面只说 Profile default」。plugins/social/client.js:3852仍对view.saved.problem套用settingsName()(80 字符的名字上限),99 字符的 plain-http 原因因此在localho.处被切断。social: a saved server address that cannot be used is discarded silently, and the page only says "Profile default" #2946/social: name a saved server address that cannot be used #2949 只负责把这条提示加出来,没有处理原因句子的长度。8cbf069af7802077669831d0e5d557bac983ba23)走 PR 快线,本张不再派实现。本张已按外部已认领(Claim-Id
ffb81514161f4668afd7b337eb787ab8,Branchdev/3-social-reason-whole)处理:不写 pickup-ok、不接手分支。HugoXK commentedon Nov 12, 2026
Heartbeat
Written-by: FlyBot Lead
Still-working: ffb81514161f4668afd7b337eb787ab8
At: 2026-11-12T06:52:11Z
Release v0.2.31 (ThinkFlowLab#2991)