Skip to content

fix(website): word the restart pill as when a setting takes effect - #44946

Open
KiroCrewAutoBuilder wants to merge 2 commits into
mainfrom
autobuild/44882
Open

KiroCrewAutoBuilder wants to merge 2 commits into
mainfrom
autobuild/44882

Conversation

@KiroCrewAutoBuilder

@KiroCrewAutoBuilder KiroCrewAutoBuilder commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Problem / Motivation

Goal: The restart pill on boot-only settings says when the setting takes effect, so it no longer reads as a change still waiting to be applied.

The pill beside Slack's command, Knowledge's extraction effort and pool size, People > Advanced's boot-only switches and the MCP sign-in setting said "changes need a restart". It is drawn whenever the config schema marks the path `requiresRestart`, so it shows before any change, after a save and after a restart, and a person cannot tell whether a saved change is applied.

Why it matters

Anyone who sets one of these options sees a permanent "pending change" warning, restarts to clear it, and finds it still there. They lose trust in whether the setting applied at all.

Not a goal

- Comparing a saved value with the value the running process uses. The server has no such value for these settings today; the issue names the wording change as an accepted fix.
- The Kiro Agent row on Settings > Agent Harness (tracked separately).
- The tooltip text, which already explains the setting applies on the next restart.

What changed (motivation → approach → change)

Symptom: the pill reads as a pending change. Cause: `SchemaRestartBadge` (`website/src/components/settingRef/RestartRequiredBadge.tsx`) shows it from the schema flag alone, and its label `components.restartRequiredBadge.label` worded a state ("changes need a restart") the badge never checks. Change: the label now says what the flag really means, "takes effect after a restart", in `en.manual.json` and in all eleven translated catalogs (each reuses the wording the catalog already has for `preview_restart_hint`, so the two restart hints read the same), and `en-XA.json` is regenerated with `npm run i18n:pseudo`.

Reach: the one label is read only by `RestartRequiredBadge`, which every listed page (SlackPanel, Knowledge SettingsTab, PeopleAdvanced, McpSignInsSection) renders through `SchemaRestartBadge`, so all of them change together. Left as they are: the badge's render condition (`schemaRequiresRestart`) and the `tooltip` / `schema_unavailable` strings, which are already accurate; the RFC prose in `docs/request-for-change/rfc-crewmates-launch.md` and an old CHANGELOG entry use the phrase as plain prose, not as the label.

Backwards compatibility

Compatible: only the text of one catalog value changes; the key, test id and when the pill shows are unchanged.

Removes nothing: a label's wording changes; no key, path or behaviour is taken away.

Tests

Every test red on the patched tree in Verify, in backend-1, backend-2, backend-3, backend-6, backend-8, backend-10, backend-11, backend-13, backend-15, backend-16, backend-18, fails at the base commit in the Builder's verify run as well (below, Red without this patch too, and Red only after other tests for those that passed when Verify ran each again alone).

Proof: not provable -- frontend test (prove.py runs Python only)

- `RestartRequiredBadge.test.tsx`: new test pins the pill's English text to "takes effect after a restart".
- `PeoplePanel.test.tsx` and `KasBundleCard.test.tsx`: updated to the new text.
- `npx vitest run src/components/settingRef/RestartRequiredBadge.test.tsx src/pages/settings/PeoplePanel.test.tsx src/test/KasBundleCard.test.tsx src/i18n` -> 90 files, 1465 tests passed (catalog parity and pseudolocale freshness included).

Red without this patch too

These tests fail with the patch, and fail at the base commit in the Builder's verify run as well: the draft PR is opened with them red, and GitHub's CI is likely red on them too. Listed by shard and file, past 40 lines (the Builder's bound): each file's count and first 2 tests, and every test of a file this patch changes; the whole list is in the run's Verify results (build-44882-05a43904d4a1, round 1, each shard's verify/shards/<shard>.json).

backend-1: 1 test in 1 file
backend-1: test/test_living_ui_harness.py (1): test_the_dashboard_mode_reruns_under_the_runtime_python@node_probe_living_ui_harness
backend-2: 1 test in 1 file
backend-2: test/test_cli_manifest_signature.py (1): test_a_wedged_grandchild_does_not_outlive_the_bounded_run
backend-3: 3 tests in 2 files
backend-3: test/test_codex_session_mcp.py (1): test_the_driver_runner_reaps_descendants_on_the_timeout_path
backend-3: test/test_slack_gateway_update_apply.py (2): TestBrazilInstallAndDeps::test_a_cancel_while_a_repair_child_starts_kills_its_group[_check_missing_deps], TestBrazilInstallAndDeps::test_a_cancel_while_a_repair_child_starts_kills_its_group[_check_console_script]
backend-6: 2 tests in 2 files
backend-6: test/test_cli_server_more_coverage_lifecycle.py (1): TestStopViaService::test_explicit_port_bypasses_the_service
backend-6: test/test_home_pin_survives_monkeypatch_undo.py (1): test_the_import_time_floor_leaves_no_unset_state_to_fall_back_from
backend-8: 1 test in 1 file
backend-8: test/test_find_ui_auto.py (1): test_the_generated_auto_tier_answers_labels_only_it_carries[continue with github-en-Continue with GitHub-path0]
backend-10: 2 tests in 2 files
backend-10: test/test_codex_host_binary.py (1): TestVersionChild::test_timeout_kills_and_reaps_the_probe_tree
backend-10: test/test_opencode_session_mcp.py (1): test_the_driver_runner_reaps_descendants_on_the_timeout_path
backend-11: 2 tests in 2 files
backend-11: test/test_governance_chokepoints.py (1): TestFilesystemEgressAtGate::test_an_expansion_dependent_argument_keeps_the_reading_title[/srv/$PWD/note.txt]
backend-11: test/test_node_modules_txn.py (1): TestAsyncBuild::test_a_cancel_while_npm_starts_kills_its_group
backend-13: 9 tests in 2 files
backend-13: test/test_prepare_pr_prove_line.py (7): test_a_not_proven_run_prints_no_line_and_records_the_verdict, test_a_hooks_path_inherited_through_git_config_parameters_does_not_run, and 5 more
backend-13: test/test_service.py (2): TestLinuxEnvironmentFile::test_uninstall_preserves_an_operator_edited_env_file, TestLinuxEnvironmentFile::test_uninstall_removes_our_untouched_seed
backend-15: 22 tests in 1 file
backend-15: test/test_prepare_pr_prove.py (22): test_a_crlf_production_file_round_trips_through_the_revert@prepare_pr_prove_child, test_each_kind_of_hunk_beside_a_test_change[prose-whole-diff]@prepare_pr_prove_child, and 20 more
backend-16: 2 tests in 1 file
backend-16: test/test_docker_entrypoint.py (2): test_explicit_kirocrew_home_env_is_honored, test_kirocrew_home_tilde_is_expanded_like_the_backend
backend-18: 3 tests in 2 files
backend-18: test/test_env.py (1): TestAugmentedPath::test_windows_drops_the_fixed_posix_roots
backend-18: test/test_pipeline_conductor_skill_contract.py (2): [redacted]::test_a_valid_spec_starts_the_run_under_an_interpreter_without_the_package, [redacted]::test_a_malformed_spec_is_named_rather_than_traced

Red only after other tests

These tests failed in Verify's run of their shard, passed when Verify ran each again alone on the patched tree, and failed in the same run at the base commit too: they depend on what ran before them, at the base as with the patch. GitHub's CI may be red on them, by the order its runners give them.

backend-13: test/test_prepare_pr_prove_line.py::test_proven_prints_the_line_naming_only_the_tests_that_fail
backend-13: test/test_prepare_pr_prove_line.py::test_the_record_is_keyed_by_tree_and_names_the_line
backend-13: test/test_prepare_pr_prove_line.py::test_a_record_written_by_prove_satisfies_the_check
backend-13: test/test_prepare_pr_prove_line.py::test_a_message_only_amend_keeps_the_record_valid
backend-13: test/test_prepare_pr_prove_line.py::test_a_stale_record_fails_the_comparison_after_the_code_changes
backend-13: test/test_prepare_pr_prove_line.py::test_a_proven_record_cannot_be_answered_with_a_not_provable_line
backend-13: test/test_prepare_pr_prove_line.py::test_the_recorded_line_passes_in_any_of_its_spellings
backend-13: test/test_prepare_pr_prove_line.py::test_another_tree_or_no_record_leaves_a_not_provable_line_alone
backend-15: test/test_prepare_pr_prove.py::test_a_test_that_catches_the_reintroduced_bug_is_proven@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_test_file_with_a_non_ascii_name_is_proven@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_test_that_passes_with_the_bug_back_is_not_proven@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_collection_errors_alone_are_inconclusive_not_proof@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_per_hunk_names_the_hunk_no_test_catches@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_non_python_production_file_is_still_reverted@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_call_phase_exception_is_not_proof@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_an_unmet_pytest_raises_still_counts_as_proof@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_doc_hunk_does_not_drive_not_proven[README.md]@prepare_pr_prove_child
backend-15: test/test_prepare_pr_prove.py::test_a_doc_hunk_does_not_drive_not_proven[caf\xe9.md]@prepare_pr_prove_child

Manual verification

N/A — a copy-only change; the tests render the pill against the real catalog.

Real-machine verification

N/A -- the diff changes a catalog string and tests only; no runtime path changes.

Screenshots / video

Knowledge > Settings on head 9504fd04ad (the rebase of e39b3cfb38, same change), the real SettingsTab with a stubbed /api (the schema marks knowledge.extraction_effort and knowledge.extraction_pool_size boot-only), dark theme.

Desktop, English, 1100px: the pill reads "takes effect after a restart" under each boot-only control.

Knowledge settings, English, desktop

Narrow, Portuguese, 390px: "entra em vigor após uma reinicialização". The pill sits under the control, so the label column keeps its width.

Knowledge settings, Portuguese, 390px

Before (main, old label, 390px Portuguese), for comparison: the pill beside the control already squeezed the label column. With the longer new label beside the control, the column broke to one word per line, which is why 9504fd04ad stacks the pill under the control.

main before, Portuguese, 390px

Related Issues

Closes #44882

Sibling sweep

Swept: git grep -n -i "changes need a restart"

Sibling: website/src/i18n/locales/en.manual.json -- changed here

Sibling: docs/request-for-change/rfc-crewmates-launch.md:114 -- not affected -- plain prose about pages with an Apply and Restart button, not the badge label

Pattern harvest

Not generalizable: one label worded a state its component never checks; the component has a single label.

Checklist

- [x] A Conventional Commits title (`feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...`); PR Hygiene does not count commits
- [x] Existing tests pass and new tests added for new functionality
- [x] Self-review completed; code follows project style guidelines
- [x] Documentation updated (if applicable)
- [x] No secrets, credentials, or internal references in the diff

Contribution License Agreement

Contributed under the project's Apache-2.0 license.

Draft PR by the Autobuilder (its agent's own words are quoted as code), run build-44882-05a43904d4a1. The owner marks it ready for review.

@github-actions github-actions Bot added the readiness: checking Automated validation is still running label Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Design Review (Opus 5.5) — ✅ PASS

Design-level review of 9504fd04adce0b7cf2cb960652529fe906e693c9 — updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

Design-Verdict: PASS

Nothing blocks. The new label states what the schema flag actually means, and the rendered evidence is attached.

Notes

  • The description never mentions the SettingsTab.tsx layout change (the pill now sits under the effort and pool-size controls in flex-col items-end). Add a line to "What changed" saying the longer label made it necessary.

[DESIGN-REVIEWED] 9504fd0

Description read

[DESCRIPTION-READ] 597aa505d39b81c87f337bd33a49d1115453ef9714cc15064cc89942792d4c22

That sha256 names everything this verdict read: the PR description, plus the 1 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with .github/scripts/pr-description-capture.sh over the same inputs; if it differs, the description or that evidence changed after this verdict was formed and any finding drawn from either is unproven.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

UX Review (Opus 5.5) — ✅ PASS

UX-level review of 9504fd04adce0b7cf2cb960652529fe906e693c9 — updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

UX-Verdict: PASS

Nothing blocks. The blind reader read the new pill correctly as "a warning that this change only works after a restart". Shots 01 and 02 show the stacked layout at wide and narrow widths with no squeezed text column.

Notes

  • The reader assumed the pill was a button: "The arrow icon makes it look like a 'restart now' button … afraid it would restart the app straight away." Swap the circular-arrow icon in RestartRequiredBadge for a non-action glyph, such as a clock or info icon, so the pill reads as a status and not as a control.
  • The pill says "takes effect after a restart" right under the section subtitle "Changes apply on the next watcher sweep." The reader could not tell which rule covers which setting. Reword the subtitle as "Other changes apply on the next watcher sweep" so the two rules don't contradict each other.

[UX-REVIEWED] 9504fd0

Description read

[DESCRIPTION-READ] 737df263632a5c80d9586a72c92af3a701cbf75f07631cb7a522b9fefb1d2687

That sha256 names everything this verdict read: the PR description, plus the 6 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with .github/scripts/pr-description-capture.sh over the same inputs; if it differs, the description or that evidence changed after this verdict was formed and any finding drawn from either is unproven.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

First Principles Review (Opus 5.5) — ✅ PASS

Premise-level review of 9504fd04adce0b7cf2cb960652529fe906e693c9 — why this exists and whether the shipped surface is the smallest honest version. Updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

First-Principles-Verdict: PASS

Nothing blocks. The relabel names a harm, which is a pill that reads as a pending change and never clears. The layout change only makes room for the longer label.

Notes

  • Item 2 — undeclared: the "What changed" section never mentions that the SettingsTab.tsx rows change from flex items-center to flex flex-col items-end, which moves both Knowledge pills under their controls. That change is needed only because the new label is longer, so it is a consequence of item 1 and not a separate decision.

What this change ships

Inventory (3 items) — 2 justified

Intent: a person setting a boot-only option can tell the pill means "applies on restart", not "change still pending". This is a FIX.

  1. The restart pill reads "takes effect after a restart" in English, all eleven translations and the en-XA pseudolocale — justified
  2. On Knowledge settings, the extraction-effort and pool-size pills now sit below their controls instead of beside them — undeclared
  3. A new test pins the pill's English text, and two existing tests now expect the new wording — justified

[FIRST-PRINCIPLES-REVIEWED] 9504fd0

Description read

[DESCRIPTION-READ] cc2e140a16dfe560a002e5834232fb939a7374396357a715ab29f89a7b1720c6

That sha256 names the PR description this verdict read. Recompute it with .github/scripts/pr-description-capture.sh; if it differs, the description changed after this verdict was formed and any finding drawn from the description is unproven.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Opus 5.5 Review — ✅ no blocking findings

Reviewed 9504fd04adce0b7cf2cb960652529fe906e693c9 — this comment is updated in place on each push.

Review details

No findings.

[OPUS-REVIEWED] 9504fd0

Verdict parsed from the review's SHA-scoped output markers for commit 9504fd04adce0b7cf2cb960652529fe906e693c9.

False positive or not applicable? A repository writer can comment:
/ai-review override fable 9504fd04adce0b7cf2cb960652529fe906e693c9 false-positive: <reason, 20 to 500 characters>

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

GPT 6.1 Review — ✅ no blocking findings

GPT 6.1 completed its review of 9504fd04adce0b7cf2cb960652529fe906e693c9 and found no blocking issues.

This comment is updated in place on each push.

Review details

No findings.
[GPT-REVIEWED] 9504fd0

False positive or not applicable? A repository writer can comment:
/ai-review override gpt 9504fd04adce0b7cf2cb960652529fe906e693c9 false-positive: <reason, 20 to 500 characters>

@KiroCrewAutoBuilder
KiroCrewAutoBuilder marked this pull request as ready for review November 30, 2026 17:46
@github-actions github-actions Bot added readiness: passed Eligible automated validation passed for the current revision and removed readiness: checking Automated validation is still running labels Nov 30, 2026
@KiroCrewCaptain

KiroCrewCaptain commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Code change approver deep review: Request changes

Changes requested on commit 6eb4a670c2: the review lists them.

Tier: 2, held for a person: reviewer-finding: UX Review.

A deep review by the code change approver, not by a person · commit 6eb4a670c2 · 36 changed lines. If it is wrong, reply here: replies are how the approver is evaluated.

@KiroCrewCaptain KiroCrewCaptain 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.

Changes requested by the code change approver's deep review, not by a person.

The code change is correct on head 6eb4a67, but one evidence gap blocks the approval.

  1. website/src/i18n/locales/en.manual.json:4482 (rendered by website/src/components/settingRef/RestartRequiredBadge.tsx:38): no screenshot shows the reworded pill.
    • Trigger: a person opens Slack settings, Knowledge > Settings, People > Advanced or the MCP sign-in setting. The pill now shows the longer label, for example "entra em vigor após uma reinicialização" in Portuguese.
    • Outcome: nobody has seen the new label rendered. The UX review on this head says "cannot evaluate: missing a screenshot of the reworded restart pill", and its blind read did not run. The check shows as passed only because that block had no Trigger line and no Outcome line. The Screenshots section of the description says the images "are to be attached", and none is attached.
    • Fix: attach one screenshot of the pill beside a boot-only setting, for example Knowledge > extraction effort. Add a second screenshot at a narrow width in Portuguese. Then re-run the UX review on this head. No code change is necessary.

What the review verified: the label changes in en.manual.json, the eleven translated catalogs and en-XA.json, and the three tests assert the new text. The key, the test id and the render condition stay the same. The change is not on main, and no other open pull request does the same work.

Done well: the description names every page that shows the pill and explains why the tooltip and the render condition stay as they are.

This block is withdrawn automatically when a new commit fixes these items or a reply shows one is wrong: the approver reviews it again. Any maintainer can dismiss this review at any time.

Tier: 2, held for a person: reviewer-finding: UX Review.

Commit 6eb4a670c2 · 36 changed lines.

@github-actions github-actions Bot added readiness: action required A blocking check or review needs attention readiness: checking Automated validation is still running and removed readiness: passed Eligible automated validation passed for the current revision readiness: action required A blocking check or review needs attention labels Nov 30, 2026
KiroCrewAutoBuilder and others added 2 commits December 5, 2026 21:20
The longer 'takes effect after a restart' label sat beside the select and
number input, so on a narrow window the row's text column was squeezed to a
word per line (Portuguese at 390px). The pill now sits under the control.

This branch has not been deployed

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

Labels

autobuild readiness: checking Automated validation is still running

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The "changes need a restart" pill on Slack, Knowledge, People and MCP sign-in settings is always shown, so it reads as a change waiting

3 participants