Skip to content

refactor: replace OpenClaw AI config flow and standardize PR template#21

Merged
senamakel merged 4 commits into
tinyhumansai:mainfrom
senamakel:feat/chat_fix
Mar 27, 2026
Merged

refactor: replace OpenClaw AI config flow and standardize PR template#21
senamakel merged 4 commits into
tinyhumansai:mainfrom
senamakel:feat/chat_fix

Conversation

@senamakel
Copy link
Copy Markdown
Member

Summary

  • Replaced OpenClaw-based AI context injection flow with direct AI configuration retrieval and refresh utilities.
  • Refactored chat/config integration points across frontend and Tauri command surfaces to use the new configuration path.
  • Simplified AI settings panel behavior around loading and refresh by aligning it to the updated config structure.
  • Removed obsolete OpenClaw-specific loader/injector files and related initialization wiring.
  • Added and enforced a repository PR template plus authoring guidance updates in docs/agent instructions.

Problem

  • The OpenClaw integration path added indirection and stale wiring across chat and settings flows, making AI configuration behavior harder to reason about and maintain.
  • Reviewer consistency for PRs was also inconsistent due to missing standardized PR structure.

Solution

  • Introduced direct AI configuration retrieval/refresh handling in the Tauri/backend command path and updated frontend call sites accordingly.
  • Updated impacted UI/state entry points (Conversations, threadSlice, tauriCommands, AIPanel) to consume the new flow.
  • Deleted deprecated OpenClaw loader/injector modules and removed their startup usage.
  • Added .github/pull_request_template.md and documented mandatory usage in project AI authoring docs.

Testing

  • yarn -s compile
  • cargo check --manifest-path src-tauri/Cargo.toml
  • Other checks run (list commands)
    • Not run in this branch before opening draft PR.
  • Manual validation completed (list scenarios)
    • Not completed yet.

Impact

  • Affects desktop/web chat/config wiring and Tauri command integration for AI configuration retrieval.
  • Removes legacy OpenClaw code paths, reducing maintenance surface.
  • Process impact: future PRs are now expected to use the standardized template.

Breaking Changes

  • None
  • Yes (describe clearly, including migration steps)

Related

  • Issue(s): N/A
  • Follow-up PR(s)/TODOs:
    • Run compile/check/manual validation and update this draft with results.

…ation

- Replaced OpenClaw context injection with direct AI configuration retrieval methods.
- Introduced new functions for fetching and refreshing AI configuration, enhancing modularity.
- Cleaned up the AIPanel component to utilize the new configuration structure.
- Removed obsolete OpenClaw-related files and logic to streamline the codebase.
- Added new TODO items for future enhancements in the documentation.
- Introduced a new pull request template in `.github/pull_request_template.md` to standardize PR submissions.
- Updated CLAUDE.md to require the use of the new PR template for all pull requests.
- Added a rule in AGENTS.md specifying that agents must adhere to the PR template when suggesting content.
@senamakel senamakel marked this pull request as ready for review March 27, 2026 02:27
- Updated the subproject commit reference in the skills directory.
- Refined the pre-push script to improve formatting and linting checks, ensuring automatic fixes are applied when issues are detected.
- Adjusted label formatting in the AIPanel component for better readability by breaking long lines into multiple lines.
- Ensured consistent styling for labels related to personality, safety rules, tools, and skills overview.
@senamakel senamakel merged commit 5d6c9e7 into tinyhumansai:main Mar 27, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant