Skip to content

P2: replica describe() hardcodes settings: Value::Null, so settings.timezone never reaches SDK apps #1998

Done

Description

@callumalpass

Summary

replica::describe_view() (runtime/crates/replica/src/replica/client/describe.rs:133) hardcodes settings: mdbn_wire::common::Value::Null. As a result, client.describe() never exposes settings.timezone from mdbase.yaml to SDK apps. TaskNotes (callumalpass/tasknotes-app#647, which reads collectionTimezone(catalog.settings)) therefore always receives undefined and silently falls back to the browser's runtime timezone, even when the collection explicitly sets settings.timezone.

Environment & builds

  • Environment: production (https://connect.mdbase.dev, /health revision 15537b6ed38d4adc6c741a438c611700460dc856)
  • TaskNotes web build: index-tasknotes-268a56a187a6.js (includes callumalpass/tasknotes-app#647)
  • Paired CLI: v0.2.44 (Linux x64)
  • Observed UTC: 2026-11-28T00:52Z

Live reproduction

  1. Create a Cloud Copy collection, open it in TaskNotes (https://app.tasknotes.dev), complete setup, and create open tasks with floating due: "2026-11-28T23:50" (Timed Late) and date-only due: "2026-11-28" (Date Only).
  2. Pair CLI v0.2.44, set settings.timezone: Pacific/Auckland in mdbase.yaml, and wait for sync (0 pending, confirmed through head 26). At 2026-11-28T00:52Z, Auckland is Saturday, November 28.
  3. Override the browser timezone via CDP (Emulation.setTimezoneOverride) to Pacific/Honolulu (where 2026-11-28T00:52Z is Friday, November 27) and reload TaskNotes.

Expected

TaskNotes resolves Today, Upcoming, and relative due dates in the collection's timezone (Pacific/Auckland, Saturday Nov 28), showing Timed Late and Date Only as due Today.

Observed

  • Today view showed Friday, November 27, count 0, "Today is clear", "Next: Date Only · Tomorrow".
  • Upcoming badge showed 2.
  • Timed Late (due: "2026-11-28T23:50") showed Due: Tomorrow, 11:50 PM.

Root cause verified in source

In runtime/crates/replica/src/replica/client/describe.rs:129-139:

Ok(crate::api::Describe {
    spec_version: cat.spec_version().unwrap_or("").to_string(),
    types,
    contracts,
    settings: mdbn_wire::common::Value::Null,
    ...
})

Because settings is always Null, collectionTimezone(catalog.settings) in TaskNotes (nextTaskCatalog and apps/import/src/destination.ts) always gets undefined.

Positive checks from the same run

  • Timed due (2026-11-28T23:50, 2026-11-28T09:49) and scheduled (2026-11-28T10:48) persisted as floating wall times (no Z/offset).
  • Date-only due (2026-11-28) stayed date-only; dateCreated/dateModified stayed UTC Z instants.
  • Editor (index-C51b_B65-15537b6ed38d.js) displayed 2026-11-28T23:50 and preserved the floating spelling after a body edit.

Related

Activity

  1. callumalpass commented on Nov 28, 2026

    @callumalpass
    MemberAuthor

    Release supervisor triage (SC37)

    • Decision: No rollback, no release line hold; fix forward (stays P2).
      • Pre-existing unimplemented projection in replica::describe_view() (not a regression from the latest release); rolling back Server or TaskNotes would not populate catalog.settings.
      • TaskNotes falls back cleanly to the browser timezone with no crash or data corruption, and floating wall-time persistence / date-only preservation / UTC write timestamps / Editor spelling preservation all passed in SC37 T1.

    Confirmed location (origin/main cea053a37)

    • runtime/crates/replica/src/replica/client/describe.rs:133 hardcodes settings: mdbn_wire::common::Value::Null.
    • Core already parses and exposes mdbase.yaml settings (including timezone: Option<String>) via Catalog::settings() (runtime/crates/core/src/types.rs:48-78), and mdbase-wasm already serializes them (runtime/crates/mdbase-wasm/src/json.rs:177).
    • Confirmed open PR #1996 does not touch describe.rs.

    Fix-forward direction

    • Populate Describe.settings from cat.settings() in runtime/crates/replica/src/replica/client/describe.rs, add replica + SDK describe() tests asserting settings.timezone propagates end-to-end, rebuild/repin app-runtime.wasm, and let SDK/TaskNotes pick it up alongside companion P3 callumalpass/tasknotes-app#662.
  2. added
    agent-e2e
    on Nov 28, 2026
  3. callumalpass commented on Nov 28, 2026

    @callumalpass
    MemberAuthor

    Verified live in production on Connect 5be4c301c8b6 and TaskNotes index-tasknotes-4dfdcbdae1b7.js / ffc7daea0ff6 (SDK 0.2.59, carrying PR #2002, 2026-11-28): a hosted collection configured with Pacific/Honolulu exposed its timezone through replica.describe() so TaskNotes Today displayed "Friday, November 27" while the Melbourne browser desk was on Saturday, November 28. Closing as fixed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-e2e

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions