Skip to content

[Retrospective] Preserve activation arguments and restore valid window placement #151

Closed

Description

@lumenpearson

Completed result

Preserve activation arguments through tray relaunch; bound single-instance redirection and recover if the owner exits; wait for localization and restore usable non-minimized DPI-aware geometry with modern-main routing

Scope and completion boundary

Retrospective completed implementation in historical main through merged PR9; current security/native/release acceptance remains separate.

Acceptance record

  • Preserve activation arguments through tray relaunch.
  • bound single-instance redirection and recover if the owner exits.
  • wait for localization and restore usable non-minimized DPI-aware geometry with modern-main routing.

Evidence and documentation

  1. freshly_inspected_integrated_commit — 1b04f2776b9a6a6206d8142bd8a10d7f200c6ea8. Source: Git commit record.
  2. freshly_inspected_integrated_commit — 60acd544cb428033e784a9d932ab4e4d4efd61c0. Source: Git commit record.
  3. freshly_inspected_integrated_commit — 41e532bc3572e3abcc3075d9c0ba15ac1d2c710d. Source: Git commit record.
  4. freshly_inspected_integrated_commit — efb60e383cefd3d5bdcc329bbc51558e156360c3. Source: Git commit record.
  5. freshly_inspected_integrated_commit — c7d9e9a3a6b00d3c4b8a92739f5dd1312d1154d3. Source: Git commit record.
  6. freshly_inspected_integrated_commit — 984096a18553b8a5f70441e6fa0095cc729b1623. Source: Git commit record.
  7. freshly_inspected_integrated_commit — 8a16bfadc7a1561057a2a99bb70d895975f72396. Source: Git commit record.
  8. freshly_inspected_owning_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI/Program.cs.
  9. freshly_inspected_owning_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI/Helper/WindowHelper/WindowOpenHelper.cs.
  10. freshly_inspected_owning_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI/Helper/WindowHelper/WindowsPositionHelper.cs.
  11. freshly_inspected_owning_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI.Shared/Basic/CommandLine/GuiActivationArguments.cs.
  12. freshly_inspected_regression_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI.Tests/Shared/GuiActivationArgumentsTests.cs.
  13. freshly_inspected_regression_source — 7ead95f7756057f67cd113671a7f84cf422e8d32. Source: CDPIUI.Tests/Shared/GoodbyeDpiMigrationActivationTests.cs.
  14. recorded_historical_verification — 620b8dfc3391e372368af0cce24838df3986e457. Source: https://github.com/lumenpearson/cdpiui/pull/2.
  15. recorded_historical_verification — 651075d0a86a6e856ba780e65ec684b3d47b9479. Source: https://github.com/lumenpearson/cdpiui/pull/4.

The verification comment below preserves the case-specific results, methods, and limitations. Historical execution results remain attached to their recorded revisions.

Remaining boundaries

  • Completion means the bounded historical implementation milestone; linked security, native, integration and release acceptance remains separate.
  • No test, build or native scenario was rerun in this read-only retrospective.
  • Cross-account environment, public-URI security and installed activation acceptance remain separate.

Project classification and ownership

Delivery Project 7; target Status Done; Priority P2; Area Reliability; Risk Medium; gate G1.
Maintainer and retrospective record owner: @lumenpearson. No invented due date or estimate is assigned.

Related work

#11, #16, #50, #65, #66. PR #2, PR #4

Closing this scoped record does not close a related audit finding, integrated acceptance issue, milestone, or release gate. Those retain their own criteria.

Activity

  1. self-assigned this
    on Nov 10, 2026
  2. added
    type:bugFix a reproducible defect in application behavior.
    area:reliabilityCancellation, errors, races, data preservation and recovery.
    on Nov 10, 2026
  3. lumenpearson commented on Nov 10, 2026

    @lumenpearson
    OwnerAuthor
    -verification

    Case-specific verification and close-out

    The retrospective reconciles the source evidence with this bounded completion claim. It does not replay historical tests or native actions unless explicitly stated below.

    1. freshly_inspected_integrated_commit

    Revision: 1b04f2776b9a6a6206d8142bd8a10d7f200c6ea8.
    Source record: Git commit record.

    Preserve GUI activation arguments across tray startup. Verified ancestor of historical main. Original-Commit: 1fb1abf

    2. freshly_inspected_integrated_commit

    Revision: 60acd544cb428033e784a9d932ab4e4d4efd61c0.
    Source record: Git commit record.

    Bound activation redirection and recover when the main instance exits. Verified ancestor of historical main. Original-Commit: 5dc48d3

    3. freshly_inspected_integrated_commit

    Revision: 41e532bc3572e3abcc3075d9c0ba15ac1d2c710d.
    Source record: Git commit record.

    Wait for localization before creating windows. Verified ancestor of historical main. Original-Commit: e901e71

    4. freshly_inspected_integrated_commit

    Revision: efb60e383cefd3d5bdcc329bbc51558e156360c3.
    Source record: Git commit record.

    Use a language fallback and tolerate closed window dispatchers. Verified ancestor of historical main. Original-Commit: 9b9f1db

    5. freshly_inspected_integrated_commit

    Revision: c7d9e9a3a6b00d3c4b8a92739f5dd1312d1154d3.
    Source record: Git commit record.

    Exclude minimized window geometry from saved placement. Verified ancestor of historical main. Original-Commit: 907ef2a

    6. freshly_inspected_integrated_commit

    Revision: 984096a18553b8a5f70441e6fa0095cc729b1623.
    Source record: Git commit record.

    Convert saved window sizes before physical work-area checks. Verified ancestor of historical main. Original-Commit: dbb17e9

    7. freshly_inspected_integrated_commit

    Revision: 8a16bfadc7a1561057a2a99bb70d895975f72396.
    Source record: Git commit record.

    Correct main window routing and Store installer resolution. Verified ancestor of historical main. Original-Commit: 4de55d7

    8. freshly_inspected_owning_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI/Program.cs.

    Inspected integrated historical-main source: 229 lines; methods include MarkMigrationActivationPending, CompleteMigrationActivation, DecideRedirection, OnActivated, DispatchOrQueueActivation, DispatchPendingActivations, DispatchActivation, ObserveMigrationActivation, ObserveMigrationArguments, ObserveMigrationArguments, RedirectActivationTo. Static implementation/document inspection, not a fresh native result.

    9. freshly_inspected_owning_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI/Helper/WindowHelper/WindowOpenHelper.cs.

    Inspected integrated historical-main source: 144 lines; methods include OpenAsync, GetWindowType, GetPageType. Static implementation/document inspection, not a fresh native result.

    10. freshly_inspected_owning_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI/Helper/WindowHelper/WindowsPositionHelper.cs.

    Inspected integrated historical-main source: 399 lines; methods include SetWindowSize, SetWindowPosition, SetWindowOwner, SetCustomWindowSizeAndPositionFromSettings, TryGetMonitorWorkArea, SaveWindowSizeAndPostionsettings, Center, GetWindowResizeOptionsFromWindow, GetScaleFactor, TrySetMicaBackdrop, SetWindowBorderMargin, SetWindowIcon. Static implementation/document inspection, not a fresh native result.

    11. freshly_inspected_owning_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI.Shared/Basic/CommandLine/GuiActivationArguments.cs.

    Inspected integrated historical-main source: 92 lines; methods include Encode, TryDecode, JoinCommandLine, Quote. Static implementation/document inspection, not a fresh native result.

    12. freshly_inspected_regression_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI.Tests/Shared/GuiActivationArgumentsTests.cs.

    Inspected integrated historical-main source: 38 lines; methods include ArgumentsSurviveEncoding, MissingOrDamagedValueIsIgnored, ArgumentsAreQuotedForCommandLineToArgv. Regression source presence is not a fresh execution claim.

    13. freshly_inspected_regression_source

    Revision: 7ead95f7756057f67cd113671a7f84cf422e8d32.
    Source record: CDPIUI.Tests/Shared/GoodbyeDpiMigrationActivationTests.cs.

    Inspected integrated historical-main source: 205 lines; methods include Encode, Encode, Build, CreatedArgumentIsParsedBack, QuotesAndSpacesAroundTheArgumentAreIgnored, ArchivePathWithUnicodeIsDecoded, MalformedArgumentsAreRejected, TooLongArgumentIsRejected, OtherProtocolVersionsAreRejected, HashMustBe64LowerHexCharacters, MigrationIdMustBeAGuidWithoutDashes, ArchivePathMustBeCanonicalBase64UrlOfUtf8. Regression source presence is not a fresh execution claim.

    14. recorded_historical_verification

    Revision: 620b8dfc3391e372368af0cce24838df3986e457.
    Source record: https://github.com/lumenpearson/cdpiui/pull/2.

    Live PR body read2026-11-10; historical results, not rerun here: 192 tests; CI libraries, GUI, utility and installer builds. Live GUI/tray use unverified.

    15. recorded_historical_verification

    Revision: 651075d0a86a6e856ba780e65ec684b3d47b9479.
    Source record: https://github.com/lumenpearson/cdpiui/pull/4.

    Live PR body read2026-11-10; historical results, not rerun here: 559 tests; strict restore and Windows CI library/GUI/tools/layout/MSI; single-file utilities. Native usage pending.

    Acceptance limits retained

    • Completion means the bounded historical implementation milestone; linked security, native, integration and release acceptance remains separate.
    • No test, build or native scenario was rerun in this read-only retrospective.
    • Cross-account environment, public-URI security and installed activation acceptance remain separate.

    The named result is complete within the issue scope. The acceptance record supports closure as completed. Related integration, installed-product, security and release work remains governed by its own issue.

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

Metadata

Metadata

Assignees

Labels

area:reliabilityCancellation, errors, races, data preservation and recovery.type:bugFix a reproducible defect in application behavior.

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions