Skip to content

improve: an apply-failed proposal can be fixed further or proposed again - #52

Merged
reoring merged 1 commit into
mainfrom
fix/continue-from-apply-failed
Dec 4, 2026
Merged

reoring merged 1 commit into
mainfrom
fix/continue-from-apply-failed

Conversation

@reoring

@reoring reoring commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Problem

An improvement session whose proposal is 「反映できませんでした」 (ApplyFailed) was locked with “ask your administrator”, and 「AIで直す」 on the app kept reopening it, so the app could not be improved again. Observed on Craftsman after a proposal's work area was deleted.

Change

Builds against appthrust/platform#7798, which admits turns, runs and re-submission in ApplyFailed.

  • improvementAdmitted admits ApplyFailed; the session is not locked.
  • The apply-failed notice says the person can keep fixing or send the same proposal again, and offers 「もう一度提案する」 (the existing start with nothing left to make). One request per press.
  • Mock Platform admits ApplyFailed runs, returns the proposal to Proposed after the run, and gains POST /api/v1/__mock/proposal-apply {outcome}.

With a Platform that predates #7798 the start is refused with the existing ProposalRunBlocked wording; nothing else changes.

Verification

  • bun run typecheck, bun run typecheck:e2e: clean.
  • bun test src/features/improve src/features/proposals src/model/build: 352 pass.
  • e2e/stories/improve-apply-failed.mock.spec.ts (new) passes; the full e2e suite was not run.

A session whose proposal could not be applied was a dead end, and 「AIで直す」 kept
reopening it. Platform now admits turns, runs and re-submission in ApplyFailed.

- improvementAdmitted admits ApplyFailed; the session is no longer locked.
- The apply-failed notice offers 「もう一度提案する」 (a run with nothing left to make).
- Mock Platform admits ApplyFailed runs and gains the __mock/proposal-apply toggle.
@reoring
reoring merged commit adb14e3 into main Dec 4, 2026
13 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant