Skip to content

Remove persistent suggestion outcome labels - #323

Merged
max-sixty merged 3 commits into
mainfrom
codex/remove-suggestion-receipt
Sep 6, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/remove-suggestion-receipt

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Suggestion decisions already expose a complete feedback path: busy paint while delivery is unresolved, the content transition when it settles, the shared notice, and Undo. This removes the additional persistent “Accepted” / “Rejected” text from successful settlements so the margin retains only controls the reader can still use.

Actionable failures still keep their receipt beside Retry and Cancel. This also records that distinction in the shared UI guidance, updates the suggestion registry and example copy, and removes tests that existed only to preserve settled success receipts. The browser-test cleanup also repairs a decision / ask variable-name mismatch in an existing ask-arrival geometry assertion.

Tests:

  • uv run pytest tests (888 passed)
  • uv run pytest tests/test_render_pages.py::test_a_copy_keeps_a_wide_widget_inside_its_standing_reaction_rail
  • uv run pre-commit run --all-files

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things the change leaves behind.

A shipped comment still promises the receipt. The pointer-and-hover note in skills/leaf/assets/runtime/chrome.css — the block above .lf-margin-button:is(button, [role="button"]):not([data-lf-behavior="status"]) — still ends Decided suggestions export sibling text receipts. (chrome.css#L359). Exporting RAIL_AND_WIDE_PAGE with an accepted sug-copy against this branch, the copy keeps 0 .lf-sug-actions rows, 0 .lf-margin-items and no data-lf-rail — a decided suggestion now exports nothing. Every other comment carrying that claim was rewritten here; this one sits in a file the diff doesn't open. Happy to push the one-line removal.

Two of the deleted tests were not about the receipt. test_a_copy_keeps_the_rail_a_decided_change_left and test_a_copy_keeps_a_board_off_the_row_its_decided_change_left used a decided suggestion only as the cheapest way to make a copy hold a rail. What they asserted is that an exported wide widget stays inside the page's own box — the leftward case their docstring calls out, where the columns that went past the edge "are not cut off with a way to reach them, they are simply gone" — and that the band mark keeps a board off the row level with it. Their premise is genuinely dead, so deleting them as written is right. The fault isn't: standalone.js deliberately holds the rail for standing reaction marks ("a standing reaction keeps its mark and the room that mark was reserved for, and that room is the rail it was exported with"), and their own note that nothing catches this from the outside — "the render gate runs on the live page rather than on a file" — still stands. Retargeting one onto a reaction-bearing fixture would keep the guard for the cost of a fixture.

Nothing else: .lf-margin-receipt lands on the class lf-draft already writes and keeps its failed-state color, a settled row survives the contribution-hiding rule on Undo's own data-lf-button-primary and drops out once the decision stops being undoable, and the corpus regenerates byte-identical.

Verification and one aside

Ran locally against the merge tree: tests/test_render_margin.py, tests/test_render_outbox.py, tests/test_render_drafts.py (183 passed), plus the suggestion, export/copy and rail selections in test_render_widgets.py, test_render_export.py and test_render_pages.py. The export probe above is RAIL_AND_WIDE_PAGE + an accept command on sug-copy, read back through RAIL_FIT — the shape the deleted rail test used.

Aside: the decision/ask repair in test_an_ask_arrival_starts_with_the_context_that_frames_it is a real fix that doesn't follow from the receipt removal — at the merge base both page.evaluate blocks raise (ReferenceError: decision is not defined), so the test fails there and passes here. Worth naming in the PR body, since the title and description give no hint it's in scope.

@max-sixty
max-sixty merged commit f3e8cc3 into main Sep 6, 2026
7 checks passed
@max-sixty
max-sixty deleted the codex/remove-suggestion-receipt branch September 6, 2026 01:10
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.

2 participants