Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions contributing/samples/adk_stale_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
BOT_ALERT_SIGNATURE = (
"**Notification:** The author has updated the issue description"
)
BOT_NAME = "adk-bot"

# --- Global Cache ---
_MAINTAINERS_CACHE: Optional[List[str]] = None
Expand Down Expand Up @@ -246,8 +247,9 @@ def _build_history_timeline(
if BOT_ALERT_SIGNATURE in c_body:
if last_bot_alert_time is None or c_time > last_bot_alert_time:
last_bot_alert_time = c_time
continue

if actor and not actor.endswith("[bot]"):
if actor and not actor.endswith("[bot]") and actor != BOT_NAME:
# Use edit time if available, otherwise creation time
e_time = c.get("lastEditedAt")
actual_time = dateutil.parser.isoparse(e_time) if e_time else c_time
Expand All @@ -263,7 +265,7 @@ def _build_history_timeline(
if not e:
continue
actor = e.get("editor", {}).get("login")
if actor and not actor.endswith("[bot]"):
if actor and not actor.endswith("[bot]") and actor != BOT_NAME:
history.append({
"type": "edited_description",
"actor": actor,
Expand All @@ -285,7 +287,7 @@ def _build_history_timeline(
label_events.append(time_val)
continue

if actor and not actor.endswith("[bot]"):
if actor and not actor.endswith("[bot]") and actor != BOT_NAME:
pretty_type = (
"renamed_title" if etype == "RenamedTitleEvent" else "reopened"
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ classifiers = [ # List of https://pypi.org/classifiers/
dependencies = [
# go/keep-sorted start
"PyYAML>=6.0.2, <7.0.0", # For APIHubToolset.
# TODO: Update aiosqlite version once https://github.com/omnilib/aiosqlite/issues/369 is fixed.
"aiosqlite==0.21.0", # For SQLite database
"aiosqlite>=0.21.0", # For SQLite database
"anyio>=4.9.0, <5.0.0", # For MCP Session Manager
"authlib>=1.5.1, <2.0.0", # For RestAPI Tool
"click>=8.1.8, <9.0.0", # For CLI tools
Expand Down Expand Up @@ -110,6 +109,7 @@ eval = [
"google-cloud-aiplatform[evaluation]>=1.100.0",
"pandas>=2.2.3",
"rouge-score>=0.1.2",
"scipy<1.16; python_version<'3.11'",
"tabulate>=0.9.0",
# go/keep-sorted end
]
Expand Down
3 changes: 2 additions & 1 deletion src/google/adk/cli/adk_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,8 @@ async def process_messages():
for task in done:
task.result()
except WebSocketDisconnect:
logger.info("Client disconnected during process_messages.")
# Disconnection could happen when receive or send text via websocket
logger.info("Client disconnected during live session.")
except Exception as e:
logger.exception("Error during live websocket communication: %s", e)
traceback.print_exc()
Expand Down
Loading
Loading