Skip to content

Great Me (2)

Choose a tag to compare

@knoop7 knoop7 released this 07 May 11:35

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) and importlib.import_module with hass.async_add_executor_job wrappers 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_module in openai patch — Converted patch_openai_allow_empty_key to async, running import_module via 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.0 again using a const.VERSION constant, replacing the removed runtime manifest.json file read.

Features

  • Unify cross-conversation recent context window to 60 minutes — When a chat window is closed or conversation_id changes, the GetConversationHistory(action="recent") tool and /history recent command 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.json file read from FallbackConversationAgent.__init__ — eliminates a blocking I/O call during entity setup.
  • Simplify tool_result_summary.py by removing unused _find_earlier_assistant_text fallback path.
  • Fix hook.py to correctly resolve original_async_converse through 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