Skip to content

Commit 60d074f

Browse files
committed
fix: 移除命令拦截逻辑,允许所有消息传给 Agent 处理
- handler.py: 删除 `/` 开头命令拦截,支持 Agent Skill 调用 - .gitignore: 移除通配符规则,保留 samconfig.toml.example
1 parent ed00d11 commit 60d074f

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ agent-sdk-server/claude-settings.json
1717

1818
# Sensitive configuration files
1919
samconfig.toml
20-
samconfig*.toml

agent-sdk-client/handler.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ async def process_webhook(body: dict) -> None:
3939
if not message or not message.text:
4040
return
4141

42-
if message.text.startswith('/'):
43-
await bot.send_message(
44-
chat_id=message.chat_id,
45-
text="Commands not supported yet. Just send me a message!",
46-
message_thread_id=message.message_thread_id,
47-
)
48-
return
49-
5042
await bot.send_chat_action(
5143
chat_id=message.chat_id,
5244
action=ChatAction.TYPING,

0 commit comments

Comments
 (0)