Files
qwen-code/packages/sdk-java
易良 4dd7478a03 fix(managed-agent): share title blankness and pin the lease-renewal clamp (#13979)
Item 1: the create route decided title blankness with String.isBlank()
while its rename twin had been widened to treat Unicode blanks (NBSP,
U+FEFF, U+2007, U+202F) as empty. A session created with a NBSP-only
title persisted it, then the rename route refused the server's own stored
value. Extract the blankness predicate (unicodeBlank) and share it; each
validator keeps its own length cap and failure mode, and validTitle still
coerces to null rather than throwing.

Item 3: the only lease-renewal test picked a renew interval below the
coordinator's clamp (leaseDuration/3), so the clamp never bound and
inverting or deleting it kept the suite green. Raise the interval to
400ms against a 300ms lease so the clamp (min, resolving to 100ms) is
what picks the period; the M1 inversion (min->max, 400ms period) now
starves the lease and the competing replica wins it.

Fixes #13868
2026-10-13 08:18:58 +00:00
..