Skip to content

P3: Journal setup conflict review offers only Try again for a hand-edited app definition #168

Done

Description

@callumalpass

When a Journal app definition file has been edited by hand, the setup review names the file but offers only 'Try again', leaving the user stuck unless they know how to revert the file manually (seen 2 of 2 times).

Expected: offer clear actions to restore the app's definition (keeping a backup copy of the edited file) or cancel, plus plain guidance on resolving the conflict by hand.

Approved by Callum in ops inbox triage (2026-11-26).

Activity

  1. added
    agent-e2e
    on Nov 26, 2026
  2. callumalpass commented on Nov 28, 2026

    @callumalpass
    MemberAuthor

    Retested live on production (2026-11-28, Connect /health 15537b6ed38d4adc6c741a438c611700460dc856, Journal index-journal-789451fe81ab.js, SDK 0.2.55 / UI 0.2.55). Keeping this issue open for two reasons observed live:

    1. PR Add recovery actions and guidance for non-adoptable setup conflicts #181's backup+restore panel does not trigger for a hand-edited managed contract: Core (packs.rs) now marks a modified installed managed resource as replaceable() (adoptable), and inspectSetupConflicts() filters out adoptable conflicts. After hand-editing _mdbase/contracts/journal.entry.md via CLI and reloading Journal, @mdbase-dev/ui's shared review handles it instead: Setup needs your decision -> Use Journal's version -> "Replace the shared format for this app's notes with this app's version. Yours isn't kept." -> Set up (no backup copy created, no Cancel button, footer says Set up Journal in ... rather than a conflict alert).
    2. Clicking Set up fails deterministically (3/3): Applying Use Journal's version -> Set up blocks Journal with "Couldn't check this collection's setup" and console error mdbase application blocked: configuration_unavailable (sdk.js:35866). Contract bytes remain unchanged on disk until manually reverted via CLI (manual byte restore immediately returned Journal to ready and saved the pending draft). Filed the SDK/runtime failure as P2: Setup apply fails with configuration_unavailable when replacing a modified managed contract mdbase-connect#1997.

    Other checks from the run passed: conflict detection correctly surfaced the remapped path _mdbase/contracts/journal.entry.md, dismissing the sheet via Escape preserved the unsaved local draft, and Choose a different collection returned cleanly to the chooser.

  3. callumalpass commented on Nov 28, 2026

    @callumalpass
    MemberAuthor

    Verified live in production on index-journal-d016f96445c2.js (Connect 5be4c301c8b6, CLI 0.2.60, PR #202 + SDK 0.2.59, 2026-11-28): setup conflict review for a hand-edited managed contract offered backed-up restore, manual recheck, collection switching, and cancel; backed-up restore completed cleanly, created a backup matching the hand-edited file's SHA-256 byte for byte on CLI disk, and a new Journal entry synced with zero pending changes. 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