Great Me (2)
Bug Fixes
-
Eliminate all blocking I/O in async event loop paths — Replaced direct synchronous file system calls (
Path.read_text/write_text/stat/exists/mkdir/glob/resolve) andimportlib.import_modulewithhass.async_add_executor_jobwrappers throughout the integration. This resolves Home Assistant warnings about detected blocking calls inside the event loop and significantly improves responsiveness during conversations, tool execution, and startup. -
Fix blocking
importlib.import_modulein openai patch — Convertedpatch_openai_allow_empty_keyto async, runningimport_modulevia executor. Resolves:Detected blocking call to import_module with args ('homeassistant.components.openai_conversation.config_flow') inside the event loop. -
Remove redundant blocking stat in attachment hook — The ChatLog attachment injection hook no longer performs synchronous
is_file()/stat()calls on the main thread; trusts the already-validated sanitized path from the executor-based preprocessing stage. -
Restore version display in device info — Device now shows
AI Agent v7.3.0again using aconst.VERSIONconstant, replacing the removed runtimemanifest.jsonfile read.
Features
- Unify cross-conversation recent context window to 60 minutes — When a chat window is closed or
conversation_idchanges, theGetConversationHistory(action="recent")tool and/history recentcommand now both default to a 60-minute lookback window (previously 20 and 30 minutes respectively). The underlying 24-hour persistent history retention is unchanged.
Refactoring
- Drop runtime
manifest.jsonfile read fromFallbackConversationAgent.__init__— eliminates a blocking I/O call during entity setup. - Simplify
tool_result_summary.pyby removing unused_find_earlier_assistant_textfallback path. - Fix
hook.pyto correctly resolveoriginal_async_conversethrough the global format patch chain. - Add pure path helpers (
output_dir_path,tmp_dir_path) to separate path construction from directory creation. - Add async wrappers for skill store, config file store, curator, and skill usage modules.
Full Changelog: v7.2.0...v7.3.0