fix: center minichat widget and fix weather tool success status

- KnowledgeView minichat: add margin-inline: auto so the widget centers
  within the content area when max-width is reached on wide screens
- weather get_weather tool: return success: true on both the arbitrary
  location path and the cached locations path so ToolCallCard shows
  the correct success state instead of always flagging as error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 00:50:42 -04:00
parent b4be1f0799
commit 07f4956550
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1923,7 +1923,7 @@ async def execute_tool(
lat, lon, label = await geocode(location)
raw = await _fetch_open_meteo(lat, lon)
days = parse_forecast(raw)
return {"data": {"locations": [{
return {"success": True, "data": {"locations": [{
"location_key": "query",
"location_label": label,
"fetched_at": datetime.now(_tz.utc).isoformat(),
@@ -1936,7 +1936,7 @@ async def execute_tool(
locations = await get_cached_weather(user_id)
if location.lower() not in ("all", ""):
locations = [loc for loc in locations if loc["location_key"] == location.lower()]
return {"data": {"locations": locations}}
return {"success": True, "data": {"locations": locations}}
elif tool_name == "get_rss_items":
from fabledassistant.services.rss import get_recent_items