fix(ui,runtime): OP4 re-review residuals R1-R4 (coordinator pass) — OP4 CLOSED

R1: the timestamp prefix moves from ChatLog.Append (which stamped the
stored BODY, rendering 'Alice says, "13:05:09 hi"') to ChatVM's display
composition — FormatTimestampPrefix(entry.Received) prepends the COMPOSED
line, matching retail's separate-leading-string model (fprintf("%ls%ls",
ts, text) @0x00563e5b; AddTextToScroll receives composed lines). The
prefix renders entry.Received in LOCAL time (retail strftime), invariant
literal colons. The ten defect-pinning test cases across
ChatLogTests/RuntimeCommunicationStateTests are rewritten to pin the
corrected contract (stored bodies stay clean; the composed line carries
the stamp outside the quotes — ChatVMTests).

R2: open option-bearing panels converge on every PlayerDescription seed:
OptionPage.ReloadFromLive (per-row live re-read + gating re-eval, NO
AfterApply flush — the seed just cleared the dirty module),
OptionsPanelController.OnServerOptionsSeeded (active page),
CombatUiController.OnServerOptionsSeeded (SyncControls), wired through
RuntimeSettingsController.ServerOptionsSeeded from the same factory hook
LockUI already uses. Retail cannot reach this state (its panels close
across login); the adaptation exists because retained panels survive the
session boundary — documented at the seam.

R3: tests drive the refresh widget push (model AND checkbox converge) and
ReloadFromLive's no-flush contract. R4: AP-196 addendum names the
headless AutoRepeatAttack false->true effective-default flip and the
characterOptions escape hatch.

Full Release suite: 13,083 passed / 4 skipped / 0 failed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-08-11 06:36:14 +02:00
parent e71e5a9614
commit ac0304dcf0
13 changed files with 216 additions and 114 deletions

View file

@ -435,14 +435,14 @@ public sealed class ChatLog
private void Append(ChatEntry entry)
{
if (DisplayTimestampsSource?.Invoke() == true)
{
entry = entry with
{
Text = FormatTimestampPrefix() + entry.Text,
};
}
// OP4 re-review R1 (2026-08-11): the timestamp prefix does NOT touch
// entry.Text here. Retail composes the display line FIRST and carries
// the timestamp as a SEPARATE leading string at display time
// (AddTextToScroll @0x00563C50 receives already-composed lines;
// fprintf("%ls%ls\n", ts, text) @0x00563e5b) — prefixing the raw body
// put the stamp INSIDE the quotes of composed kinds
// ('Alice says, "13:05:09 hi"'). ChatVM's display composition applies
// FormatTimestampPrefix(entry.Received) around FormatEntry instead.
_buffer.Enqueue(entry);
while (_buffer.Count > _maxEntries)
_buffer.TryDequeue(out _);
@ -465,8 +465,9 @@ public sealed class ChatLog
/// <c>GenericQualitiesData::InqString(m_pPlayerOptionsData, 1, ...)</c>
/// — see register row AP-197.
/// </summary>
private static string FormatTimestampPrefix() =>
DateTime.Now.ToString(@"H\:mm\:ss ", CultureInfo.InvariantCulture);
public static string FormatTimestampPrefix(DateTime receivedUtc) =>
receivedUtc.ToLocalTime().ToString(
@"H\:mm\:ss ", CultureInfo.InvariantCulture);
public void Clear()
{