Skip to content

Profile page password card draws the server's English refusal for set-password and change-password #37973

Description

@objectstack-fleet

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Filing gate: ① a product defect, left out of PR #37965 (Fixes #34171) as review nit N2 of contract review 7219466980.

Facts (main after #37965)

  • The profile page's password card calls setInitialPassword and changePassword and draws err.message raw, so a cloud-managed runtime's 409 RESOURCE_CONFLICT refusal still shows the server's English sentence there, while the login / forgot / reset / set-password pages now show the localized one (passwordDoorRefusalMessages in app-shell signInRefusalMessages.ts).
  • Four client methods in ui/packages/auth/src/createAuthClient.ts still throw without toAuthError (sendVerificationEmail, signOut, updateUser, social sign-in), so an ADR-0112 envelope's code is dropped on those paths.

Expected

The profile password card maps RESOURCE_CONFLICT through the same password-door map; the four methods throw through toAuthError (updateUser only after #37433 settles that hunk).

Dedupe words: profile password card RESOURCE_CONFLICT English, toAuthError remaining callers, changePassword refusal localized

Activity

  1. added
    bug
    domain:ui
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:cloud · domain:ui · Bug · p2 · pm:queue · size XS; rationale: the profile page's password card shows the server's raw English refusal (409 RESOURCE_CONFLICT on a cloud-managed runtime) for set-password and change-password. That is wrong user-facing text, the profile-page twin of the login-page fix #34171 (p2). Recorded 2026-11-27T14:13Z.

  3. added
    pm:queue
    priority:p2
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Picked by card-pick.mjs --order area:cloud --seat repo:objectstack#6 at 16:10Z: rank 6, order 1, the direct follow-up of #34171 (landed by #37965). The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.

    Claim: PM loop round 8
    Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
    Account: hotlong
    Branch: claude/issue-37973-profile-password-refusal
    Worktree: objectstack-issue-37973
    Domain: domain:ui
    Seat: repo:objectstack#6
    File surface: the profile page's password card (app-shell / console, wherever it lives) and its tests; ui/packages/auth/src/createAuthClient.ts call sites of sendVerificationEmail, signOut and social sign-in; one changeset. updateUser and types.ts stay out (open draft PR #37433).
    Container & model: S, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — profile page copy and client error mapping
    Thread-read: none
    Premise: holds — read by contract review 7219466980 (N2) at #37965's head; the dev re-reads on main
    Serial constraints cleared: #37433 fenced as above; #34174 (this seat, plugin-auth server side) shares no file.
    Scope this dispatch: the whole card except updateUser. Fixes #37973 only if updateUser is not needed for the profile card; otherwise Part of #37973.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 37973,
      "status": "done",
      "branch": "claude/issue-37973-profile-password-refusal",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38025",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "The premise held on origin/main 4af32b99. The profile page PasswordCard set err.message raw on both set-password and change-password. sendVerificationEmail, signOut and signInWithProvider threw a bare new Error and dropped the code. The PasswordCard catch now maps the refusal code through the existing passwordDoorRefusalMessages map (own-key lookup; no third map), and any other code or none keeps the server message. The three client methods now throw through toAuthError, with the message unchanged. updateUser and types.ts were not touched (fenced by #37433). The profile card does not call updateUser, so the PR says Fixes #37973. Clause-2: no and Metadata-protocol: none were copied from the claim: no prop or export was added.",
      "tests": "At head 2d52a41c, from ui/: (1) vitest run packages/auth/ apps/console/src/pages/system/__tests__/ apps/console/src/pages/auth/__tests__/passwordDoorRefusal-34171.test.tsx gave Test Files 65 passed (65), Tests 655 passed (655), lock VERDICT command-exit 0. (2) New ProfilePage.passwordRefusal-37973.test.tsx: 4/4 (set-password and change-password RESOURCE_CONFLICT draw the localized sentence and read pack key auth.login.errors.managedPasswordReset; CONTROL INVALID_PASSWORD and a code-less rejection keep the server message). (3) managedRefusalEnvelope-34171.test.ts: 14/14, with 6 new (envelope plus flat CONTROL for each of the three methods). (4) @object-ui/auth type-check exit 0; @object-ui/console type-check exit 0, after the console dependency closure build. (5) Reverse check: fix committed first, both source files restored from base 4af32b99 with git restore --source, test files kept: Tests 8 failed | 10 passed (18). The 8 failures were exactly the 6 new client cases and the 2 profile RESOURCE_CONFLICT cases; the profile CONTROLs passed on base as expected. Restored with git checkout HEAD; git diff HEAD and git status --porcelain were both empty. The tests import src directly, so no dist leg was needed.",
      "gates": "Local derived set (dispatch-gates.mjs --commands, at 2d52a41c, repo assertion held): 37 of 39 families exit 0, each exit captured before any pipe, including pnpm --dir ui exec vitest run scripts/ (Tests 5138 passed | 2 skipped). NOT MEASURED: check:query-options-erasure and check:type-check-debt, reason: killed by a 300s local timeout on a shared box (exit 124); a rerun without the timeout had not finished at report time. --ran reconciliation: 39 derived, 37 run, 2 UNRUN (those two). CI families at report time (PR check-runs on 2d52a41c): Check Changeset, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs and code guards, repo and tooling gates, scoped query-options erasure), Type Check (workspace, debt ledger, source gates, consumer gates), PR-body guards: all in_progress; opt-in and queue-only runs skipped. CI convergence is the PM's.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2: (1) pr_create through the fleet-write relay (POST /repos/objectstack-ai/objectstack/pulls draft, plus POST issues/38025/assignees [hotlong]); read-back identical, 5079 bytes. (2) This os-dev-report comment through post-stamped.mjs (POST issues/37973/comments). git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none. Noted in the PR Acceptance notes, not filed: the reused password-door sentence ends with 'Sign in with the identity provider's button on the sign-in page', which a signed-in profile-page reader may find slightly off. A card-specific sentence would need a new pack key in every locale.",
        "carrier: none. Noted, not filed: on main the cloud-managed refusal leaves /change-password open (cloud#4471), so the change-password mapping covers any producer of that code and pins card behaviour only."
      ]
    }
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Landed by #38025.

  8. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cloudbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions