feat(webui): invite returning users to star nanobot (#5895)

* feat(webui): invite returning users to star nanobot

* fix(webui): place About Star link in settings list

* fix(webui): use neutral About repository label

* fix(webui): add localized Star link to About footer

* fix(webui): align Star invitation with existing dialog styling

* fix(webui): shorten and localize Star invitation copy

* fix(webui): skip Star invitation after user interaction

* fix(webui): align Star invitation meaning across locales

* fix(webui): clarify Star reminder dismissal errors
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-24 15:37:18 +08:00
1 parent 09b2ae9a31
commit d898998c47
21 files changed
+567 -3

No files matched your search

+8
View File
@@ -56,6 +56,7 @@ from nanobot.webui.metadata import (
WEBUI_TURN_METADATA_KEY,
)
from nanobot.webui.session_identity import is_webui_session_key
from nanobot.webui.star_prompt import update_star_prompt
from nanobot.webui.transcript import append_session_message_input
WEBUI_SESSION_METADATA_KEY = "webui"
@@ -705,6 +706,13 @@ class WebuiTurnCoordinator:
)
if self.recovery is not None:
await self.recovery.turn_completed(event.context.session_key)
if event.outcome == "completed" and is_webui_session_key(event.context.session_key):
turn_id = event.context.metadata.get(WEBUI_TURN_METADATA_KEY)
if isinstance(turn_id, str) and turn_id:
try:
update_star_prompt("completed", turn_id=turn_id)
except (OSError, ValueError, TimeoutError):
logger.warning("Could not persist Star invitation usage")
self._schedule_title_update_from_event(event)
async def _handle_goal_state_changed(self, event: GoalStateChanged) -> None: