Skip to content
Closed
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
2 changes: 1 addition & 1 deletion frontends/fsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ def _run_async(coro):


def handle_message(data):
event, message, sender = data.event, data.event.message, data.event.sender
_event, message, sender = data.event, data.event.message, data.event.sender
message_id = getattr(message, "message_id", "") or ""
if not _claim_message_once(message_id):
print(f"忽略重复飞书消息: {message_id}")
Expand Down
1 change: 0 additions & 1 deletion frontends/genericagent_acp_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def __init__(self, llm_no: int = 0):
def write_message(self, msg: Dict[str, Any]) -> None:
payload = compact_json(msg)
raw = (payload + "\n").encode("utf-8")
method = msg.get("method", msg.get("id", "?"))
eprint(f"[ACP-BRIDGE] >>> {payload[:500]}")
try:
with self._write_lock:
Expand Down
2 changes: 1 addition & 1 deletion frontends/qtapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def _export_as_md(self):
try:
with open(file_path, "w", encoding="utf-8") as f:
f.write(self._text)
except Exception as e:
except Exception:
import traceback
traceback.print_exc()

Expand Down
3 changes: 1 addition & 2 deletions frontends/tui_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
sys.path.insert(0, _p)

from agentmain import GeneraticAgent
from dataclasses import dataclass
from dataclasses import dataclass, field
from functools import lru_cache
from io import StringIO
Expand Down Expand Up @@ -789,7 +788,7 @@ def _ptk_keypress_to_bytes(kp) -> bytes:
try:
from prompt_toolkit.keys import Keys
except Exception:
Keys = None # type: ignore[assignment]
Keys = None # type: ignore[assignment] # noqa: F841

key = getattr(kp, 'key', None)
data = getattr(kp, 'data', '') or ''
Expand Down
2 changes: 1 addition & 1 deletion frontends/tuiapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def build_arg_parser() -> argparse.ArgumentParser:


def main(argv: Optional[list[str]] = None) -> int:
args = build_arg_parser().parse_args(argv)
_args = build_arg_parser().parse_args(argv)
app = GenericAgentTUI()
app.run()
return 0
Expand Down
2 changes: 0 additions & 2 deletions memory/autonomous_operation_sop/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def complete_task(taskname: str, historyline: str, report_path: str) -> str:
Returns:
成功消息 + 改TODO指令,或错误消息
"""
errors = []

# ── 校验 ──
if "\n" in historyline.strip():
return "[ERROR] historyline 必须是单行,不能包含换行符"
Expand Down