Exit groups: two lists still spelled Back by hand

The chat picker and the TX-optimize target picker appended their own
Separator + Back rows; back_rows is the enforcement point that keeps the
exit language from drifting (housekeeping H-004).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Fable 5 committed 2026-07-29 23:06:02 -04:00
1 parent b143a6670d
commit 1efe3cae67
2 files changed
+5 -6

No files matched your search

+2 -3
View File
@@ -38,7 +38,7 @@ from ..core.models import (
)
from ..services.trace_runner import NameKeyResolver, make_name_key_resolver
from ..ui.chat import _MENTION, _split_channel_sender
from ..ui.menus import Lane, column_header, fit_cells, section_heading
from ..ui.menus import Lane, back_rows, column_header, fit_cells, section_heading
from ..ui.theme import name_style
from ..ui.tui import Choice, DeleteRequest, Separator
from ..ui.widgets import _NODE_GLYPHS, channel_glyph
@@ -185,8 +185,7 @@ class ChatTool(Tool):
else:
items.append(Separator(" no contacts yet — receive an advert first"))
items.append(Separator(" "))
items.append(Choice(title="Back", value="__back__"))
items.extend(back_rows("__back__"))
default = next(
(
+3 -3
View File
@@ -409,7 +409,8 @@ async def _pick_target(
The chosen contact name, or ``None`` if cancelled. With no other contacts,
falls back to a free-text prompt so a hex key prefix can be typed.
"""
from ..ui.tui import Choice, Separator
from ..ui.menus import back_rows
from ..ui.tui import Choice
from ..ui.widgets import _DEFAULT_GLYPH, _NODE_GLYPHS
candidates = [c for c in contacts if c.name != admin.name]
@@ -435,8 +436,7 @@ async def _pick_target(
key=lambda c: -(c.last_seen.timestamp() if c.last_seen else 0.0),
)
]
items.append(Separator(" "))
items.append(Choice(title="Back", value=None))
items.extend(back_rows(None))
choice = await ctx.ui.select(
"TX optimize — measure at",
items,