Commit Graph
942 Commits
Author SHA1 Message Date
Steven Enamakel 6170d1a719 Update README.md to enhance feature comparison clarity and detail
- Revised the feature comparison table for OpenHuman and its competitors, improving descriptions and emphasizing key features such as self-learning capabilities and desktop integrations.
- Streamlined language for better readability and user understanding of OpenHuman's advantages.
- Ensured consistency in formatting and terminology throughout the document.
2026-04-04 14:08:00 -07:00
Steven Enamakel d47d3eb919 Update README.md to refine feature comparison table and enhance clarity
- Revised the feature comparison table for OpenHuman and its competitors, correcting the formatting and improving descriptions for clarity.
- Removed outdated language and streamlined content to better reflect current capabilities and advantages of OpenHuman.
- Ensured consistency in terminology and improved overall readability of the document.
2026-04-04 14:01:42 -07:00
Steven Enamakel ca29b73d63 Update README.md to enhance feature comparison and clarity
- Revised the feature comparison table for OpenHuman and its competitors, improving descriptions and adding clarity to the open-source status, simplicity, memory capabilities, API complexity, extensibility, and desktop integrations.
- Streamlined language for better readability and user understanding of OpenHuman's advantages.
- Removed outdated sections to focus on current capabilities and improve overall document quality.
2026-04-04 13:59:01 -07:00
Steven Enamakel f8ddba763d Update README.md to remove outdated legend and enhance feature comparison clarity
- Removed the legend section from the feature comparison table to streamline the content.
- Adjusted the feature comparison for OpenHuman and its competitors, focusing on clarity and relevance.
- Improved overall readability of the document to better convey OpenHuman's advantages.
2026-04-04 13:53:59 -07:00
Steven Enamakel 7c91aa4a87 Update README.md to refine feature comparison and enhance clarity
- Revised the feature comparison table for OpenHuman and its competitors, improving descriptions of open-source status, cost, memory capabilities, API complexity, knowledge base strength, skills integration, and desktop features.
- Streamlined language for better readability and user understanding of OpenHuman's advantages.
- Corrected minor typographical errors to enhance overall document quality.
2026-04-04 13:53:46 -07:00
Steven Enamakel 864ae21799 Update README.md to enhance feature descriptions and correct typographical errors
- Added a new section highlighting the UI-first approach, emphasizing a clean desktop experience and simplified onboarding process.
- Corrected typographical errors in the subscription model description for clarity.
- Streamlined language to improve overall readability and better convey the advantages of OpenHuman.
2026-04-04 13:48:23 -07:00
Steven Enamakel 5a510e061a Update README.md to enhance feature comparison and correct typographical errors
- Revised the feature comparison table for OpenHuman and its competitors, improving clarity on open-source status, cost, memory capabilities, API requirements, knowledge base strength, skills integration, and desktop features.
- Corrected minor typographical errors to enhance overall readability.
- Streamlined language to better reflect the current capabilities and advantages of OpenHuman.
2026-04-04 13:43:42 -07:00
Steven Enamakel ab6d3c07a7 Update README.md to improve feature comparison and clarity
- Revised the feature comparison table for OpenHuman and competitors, enhancing clarity on open-source status, cost, self-learning capabilities, API requirements, knowledge base strength, skills integration, and desktop features.
- Corrected minor typographical errors to improve overall readability.
- Streamlined language to better reflect the current capabilities and advantages of OpenHuman.
2026-04-04 13:41:14 -07:00
Steven Enamakel 06a5240e9e Update README.md to enhance clarity and detail about OpenHuman's features
- Revised descriptions for key features to improve user understanding, including subscription model, memory capabilities, skills integration, and local AI functionalities.
- Consolidated and clarified language around desktop integration and user data management, emphasizing privacy and local processing.
- Removed outdated sections to streamline the document and focus on current capabilities.
2026-04-04 13:32:20 -07:00
b40449b3b7 feat(channels): complete Telegram Managed DM flow and realtime sync (#288) (#322)
* feat(channels): extract shared constants to lib/channels/definitions

Move FALLBACK_DEFINITIONS, STATUS_STYLES, and AUTH_MODE_LABELS from
MessagingPanel into a shared module so both the settings panel and
the upcoming Channels page can reuse them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelStatusBadge, ChannelFieldInput, ChannelCapabilities

Reusable UI primitives for the Channels page: status pill badge,
credential form input, and capability chip list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add useChannelDefinitions hook

Shared hook that loads channel definitions and status from the core
RPC, falls back to local definitions, and syncs Redux state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelSelector with active route display

Tab bar component showing Web / Telegram / Discord with connection
status badges and active route summary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add TelegramConfig and DiscordConfig with managed DM flow

Channel-specific config panels with per-auth-mode credential fields,
connect/disconnect, status badges, and error handling. TelegramConfig
includes the managed DM deep link initiation flow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelConfigPanel dispatcher and WebChannelConfig

ChannelConfigPanel switches between Telegram/Discord/Web configs based
on selection. WebChannelConfig shows a simple always-connected card.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add Channels page, route, and sidebar update

Top-level /channels page with ChannelSelector + ChannelConfigPanel.
Updates sidebar nav to point to /channels instead of /settings/messaging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor(channels): simplify MessagingPanel with shared hook and components

Replace inline loading logic with useChannelDefinitions hook, inline
status badges with ChannelStatusBadge, and inline capability chips
with ChannelCapabilities. Reduces duplication with the new Channels page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(channels): keep managed dm in a reviewable UI state for #286

* style(channels): apply formatter output for #286

* feat(channels): complete telegram managed dm frontend flow (#288)

* style(channels): apply formatter output for managed dm flow (#288)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 10:38:46 -07:00
Steven EnamakelandGitHub ef708bdd20 refactor(core): move app state ownership into the Rust core (#320)
* refactor(core): integrate CoreStateProvider and streamline state management

- Replaced UserProvider with CoreStateProvider in App component to centralize state management.
- Updated various components to utilize the new CoreStateProvider for accessing session tokens and user data.
- Refactored hooks and components to eliminate direct Redux store dependencies, enhancing modularity and maintainability.
- Introduced a new core state management structure to improve the handling of user authentication and onboarding states.

This refactor aims to simplify state access across the application and improve overall code clarity.

* fix: restore polyfills import and clean up component imports

- Reintroduced the import of polyfills in main.tsx to ensure compatibility.
- Adjusted import statements in PrivacyPanel and SocketProvider for consistency.
- Simplified conditional expressions in TeamInvitesPanel and TeamMembersPanel for better readability.
- Refactored CoreStateProvider and store.ts to streamline state initialization.
- Enhanced formatting in various files for improved code clarity and maintainability.

* refactor(tests): streamline onboarding and protected route tests

- Updated OnboardingOverlay tests to utilize mock state management and simplify assertions.
- Refactored ProtectedRoute tests to improve readability and ensure consistent use of mock state.
- Enhanced teamApi tests to replace direct API calls with core RPC method calls, improving test isolation and clarity.
- Adjusted socketSelectors tests to utilize a centralized core state snapshot for better state management during tests.

* refactor(onboarding): simplify onboarding state management and improve loading logic

- Removed unnecessary local state for onboarding completion in OnboardingOverlay, directly utilizing snapshot data.
- Enhanced loading logic to prevent unnecessary renders and improve user experience during onboarding.
- Updated PrivacyPanel to handle analytics consent persistence with error handling.
- Refactored TeamManagementPanel and TeamPanel to improve team data fetching logic and loading states.
- Streamlined CoreStateProvider to manage session token synchronization and state updates more effectively.

* chore(deps): update tempfile dependency and refactor app state management

- Added `tempfile` dependency to Cargo.toml for improved temporary file handling.
- Refactored app state loading and saving functions to enhance error handling and ensure data integrity.
- Introduced quarantine mechanism for corrupted app state files to prevent application crashes.
- Updated URL parsing logic to ensure proper formatting of API URLs.
- Adjusted type definitions in schemas for better clarity and consistency.

* refactor(tests): simplify mock state usage in onboarding and protected route tests

- Consolidated mock state management in OnboardingOverlay and ProtectedRoute tests for improved readability.
- Streamlined assertions by reducing unnecessary lines in test setups.
- Enhanced consistency in mock return values across tests to ensure clarity and maintainability.

* refactor(tests): enhance PublicRoute tests with mock state and routing

- Updated PublicRoute tests to utilize MemoryRouter for improved routing simulation.
- Simplified mock state management by integrating `useCoreState` for user authentication scenarios.
- Streamlined test assertions and removed redundant preloaded state configurations for clarity and maintainability.

* refactor(tests): streamline mock state usage in PublicRoute and Mnemonic tests

- Simplified mock state management in PublicRoute and Mnemonic tests for improved readability.
- Consolidated mock return values to reduce redundancy and enhance clarity in test setups.
- Improved consistency in the usage of `useCoreState` across test files.

* Refactor billing components for improved readability

- Cleaned up import statements in BillingPanel.tsx for better organization.
- Enhanced formatting of billing plan descriptions in billingHelpers.ts for consistency.
- Improved readability of conditional checks in BillingPanel component.

* Refactor API endpoint handling for clarity and consistency

- Updated references from `/settings` to `/auth/me` in various modules to standardize user authentication flows.
- Renamed `parse_settings_response_json` to `parse_api_response_json` for improved clarity in response handling.
- Adjusted user ID extraction functions to reflect the new endpoint structure, enhancing maintainability across the codebase.
- Updated test cases to align with the new endpoint naming conventions, ensuring consistency in API interactions.
2026-04-04 03:20:18 -07:00
Steven EnamakelandGitHub 24876497df Update billing discount messaging (#321)
* feat(billing): enhance billing plan structure and display

- Added new properties to the PlanMeta interface for monthly and weekly budgets, five-hour cap, margin percentage, and storage limits.
- Updated billing plans with new budget and storage details for Free, Basic, and Pro tiers.
- Introduced utility functions for formatting USD amounts and storage limits.
- Enhanced the BillingPanel component to display new plan details, including budget and storage information, improving user clarity on subscription benefits.

* fix(tests): update billing plan tests to reflect backend configuration changes

- Adjusted test cases for the Free, Basic, and Pro plans to align with updated pricing and budget details.
- Added assertions for new properties such as margin percentage and budget limits.
- Modified display price calculations to match the revised annual pricing structure.

* refactor(billing): rename marginPercent to discountPercent in billing plans

- Updated the PlanMeta interface and billing plans to replace marginPercent with discountPercent for clarity.
- Adjusted related display elements in the BillingPanel component to reflect the new terminology.
- Modified unit tests to ensure they align with the updated property names and values.
2026-04-04 03:01:45 -07:00
8381283c52 Fix/update api (#319)
* feat(webhooks): refactor webhook URL handling and enhance API endpoints

- Introduced a new utility function `buildWebhookIngressUrl` to standardize the construction of webhook URLs across components.
- Updated `WebhooksDebugPanel` and `TunnelList` components to utilize the new URL builder for improved consistency and maintainability.
- Refactored API endpoints in `tunnelsApi` to reflect changes in webhook routing, ensuring all references to tunnel management are aligned with the new structure.
- Adjusted user API calls to replace `/telegram/me` with `/auth/me` for better clarity and consistency in authentication flows.
- Enhanced socket service to normalize channel connection update payloads, improving error handling and data integrity.

These changes streamline webhook management and enhance the overall developer experience when working with webhooks.

* feat(messaging): enhance Telegram and Discord channel linking functionality

- Added support for managed DM linking with Telegram and OAuth flow for Discord.
- Introduced `createChannelLinkToken` API to generate short-lived link tokens for messaging channels.
- Updated `MessagingPanel` to handle managed linking flows, including building launch URLs and user instructions.
- Enhanced configuration to include a Telegram bot username for fallback linking.
- Updated tests to mock new configuration values for consistent testing.

These changes improve the user experience for linking messaging channels and streamline the authentication process.

* feat(api): introduce core command client and refactor API calls

- Added a new `coreCommandClient` to facilitate RPC calls to core services.
- Refactored existing API endpoints in `authApi`, `billingApi`, `creditsApi`, `tunnelsApi`, and `userApi` to utilize the new command client for improved consistency and maintainability.
- Updated the billing API to include new endpoints for fetching balance, transactions, and managing auto-recharge settings.
- Enhanced the user API to streamline user data retrieval.
- Improved error handling and logging across the refactored API calls.

These changes enhance the overall architecture of the API services, making them more modular and easier to maintain.

* refactor(api): streamline API calls and enhance error handling

- Refactored `creditsApi` and `tunnelsApi` to ensure consistent use of the new core command client.
- Updated API methods to improve error handling and response parsing.
- Introduced a new `authed_json` method in `BackendOAuthClient` for standardized authenticated requests.
- Cleaned up unused imports and optimized code structure across various modules.

These changes enhance the maintainability and reliability of the API services.

* refactor(api): streamline API calls and improve code readability

- Reorganized API calls in `authApi`, `billingApi`, `creditsApi`, and `tunnelsApi` to enhance consistency and maintainability.
- Updated function formatting for better readability, ensuring parameters are clearly defined.
- Cleaned up import statements and removed unnecessary line breaks to improve code clarity.

These changes contribute to a more maintainable codebase and enhance the overall developer experience.

* refactor(MessagingPanel): clean up imports and remove unused constants

- Reorganized import statements for clarity and consistency.
- Removed unused constants related to channel definitions and status styles to streamline the component.
- Simplified the `updateField` function call in the rendering logic for better readability.

These changes enhance the maintainability of the MessagingPanel component.

* fix: restore helper functions removed during merge cleanup

buildManagedChannelLaunchUrl and buildManagedChannelInstruction were
stripped by the linter after merge resolution, breaking the build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(messaging): enhance MessagingPanel with pending instruction handling

- Introduced a new state for pending instructions to improve user feedback during channel connection processes.
- Updated error handling to ensure users receive clear instructions, including URLs for manual access if automatic opening fails.
- Refactored connection status updates to streamline the dispatch process and improve code readability.
- Enhanced the rendering logic to display pending instructions in the UI, providing better context for users during authentication flows.

* fix(api): encode channel and ID parameters in webhook and OAuth URLs

- Updated the URL construction in the BackendOAuthClient to encode the channel parameter, ensuring proper formatting for requests.
- Modified the get_tunnel, update_tunnel, and delete_tunnel functions to encode the ID parameter in webhook URLs, enhancing security and compatibility with special characters.

* fix(auth): validate channel input for link token creation

- Added validation to ensure the channel is not empty and is one of the supported types (telegram, discord).
- Converted the channel string to lowercase for consistent matching.
- Updated the call to create_channel_link_token to use a reference to the channel variable.

* chore(todos): update TODO list with completed tasks and new feature requests

- Marked several tasks as completed, including integration of the custom memory engine and skills registry into the core.
- Added new items to the TODO list, including improvements for voiceover functionalities, screen intelligence, and Gmail skill enhancements.
- Included tasks for debugging skills from the UI and improving prompts to reduce hallucinations.

* refactor(webhooks): improve formatting of get_tunnel function for readability

- Reformatted the get_tunnel function to enhance code clarity by adjusting the indentation and line breaks in the call to get_authed_value.
- This change improves the maintainability of the code and aligns with the overall code style.

* test(userApi): enhance userApi tests with improved mocking and error handling

- Added a mock function for core command calls to streamline test setup.
- Introduced a helper function to generate mock user data for consistent test cases.
- Updated tests to use the mock function for simulating API responses, improving clarity and maintainability.
- Enhanced error handling in tests to cover various API error scenarios, ensuring robustness in userApi.getMe functionality.

* refactor(billingApi): update tests to use core command mocking and improve error handling

- Replaced apiClient mocks with core command mocks for better alignment with the new API structure.
- Updated test cases to reflect changes in API call expectations, enhancing clarity and maintainability.
- Improved error handling in tests to ensure proper propagation of errors from core command calls.

* refactor(billingApi): simplify test cases by consolidating mock function calls

- Streamlined mock function calls in billingApi tests for improved readability and consistency.
- Removed unnecessary line breaks in mock responses, enhancing clarity in test definitions.
- Ensured that error handling and API call expectations are clearly represented in the tests.

* refactor(api): rename settings endpoint to current_user for clarity

- Updated the endpoint handling authenticated profile fetches to improve clarity in the codebase.
- Adjusted the routing to reflect the new function name, enhancing maintainability and understanding of the API's purpose.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 02:59:31 -07:00
Steven EnamakelandGitHub acfa5497ef feat(skills): advanced authentication modes for skills (#315)
* feat(auth): implement advanced authentication modes and UI selector

- Introduced a new `AuthModeSelector` component for selecting authentication methods (managed, self-hosted, text).
- Enhanced the `SkillManager` to handle revocation of both OAuth and auth credentials.
- Updated the API to support advanced auth configurations with multiple modes.
- Added functionality to persist and restore auth credentials in the skill's data directory.
- Updated relevant types and interfaces to accommodate the new auth structure.

* feat(auth): enhance SkillSetupWizard with multi-phase authentication flow

- Updated `SkillSetupWizard` to support a two-phase authentication process: an optional auth mode selection followed by the setup phase.
- Integrated `AuthModeSelector` for users to choose between managed, self-hosted, and text authentication methods.
- Improved state management to handle various auth phases, including error handling and transitions to the setup phase upon successful authentication.
- Refactored relevant types and interfaces to accommodate the new authentication structure.

* refactor(skills): remove unused loader module and clean up bridge imports

- Deleted the unused `loader.rs` module, which was reserved for future ES module import support.
- Removed references to the `loader` module in `mod.rs`.
- Cleaned up the `bridge` module by removing several unused bridge files, including `cron_bridge.rs`, `db.rs`, `log_bridge.rs`, `skills_bridge.rs`, `store.rs`, and `tauri_bridge.rs`.
- Added comprehensive tests for the `manifest.rs`, `ops.rs`, and `preferences.rs` modules to ensure functionality remains intact after the refactor.

* feat(registry): introduce registry cache management for remote skill registry

- Added a new `registry_cache.rs` module to handle disk-based caching for the remote skill registry.
- Implemented functions for managing cache, including reading, writing, and checking cache freshness.
- Updated `registry_ops.rs` to utilize the new caching functions, improving performance and reducing redundant network calls.
- Introduced a new `event_loop` module to manage the QuickJS runtime, including handling incoming messages and persisting state to memory.
- Added webhook request handling and RPC message handlers to facilitate communication with external services.
- Removed the obsolete `event_loop.rs` file, consolidating functionality into the new structure.

* fix(tests): update imports in registry_ops tests to include cache management functions

- Modified test module imports in `registry_ops.rs` to include new cache management functions from `registry_cache`.
- This change ensures that tests can utilize the updated caching functionality introduced in the recent registry cache management feature.

* chore(deps): update OpenHuman version to 0.51.6 and clean up code formatting

- Updated the OpenHuman dependency version in `Cargo.lock` to 0.51.6.
- Refactored code in several files for improved readability by adjusting formatting and removing unnecessary line breaks.
- Ensured consistent logging format in `event_loop` and `rpc_handlers` modules for better clarity in log messages.

* refactor(conversations): improve team usage display logic and formatting

- Refactored the Conversations component to enhance the display of team usage information, including clearer conditional rendering for budget exhaustion messages.
- Improved formatting of budget display for both 5-hour and weekly limits, ensuring consistent presentation.
- Streamlined the import of the core HTTP base URL in the WebhooksDebugPanel for better code organization.

* refactor(auth): enhance credential management and validation process

- Updated the SkillManager to attempt revoking auth credentials even if the auth mode is unknown, improving robustness.
- Introduced a new deserialization function to ensure that at least one authentication mode is provided in the SkillAuthConfig.
- Enhanced the handling of temporary credential injection during the auth completion process, ensuring credentials are only persisted upon successful validation.
- Improved the handling of OAuth credentials in JavaScript, ensuring stale credentials are cleared for non-managed modes.
- Added checks for existing Authorization headers to prevent redundant injections in self-hosted modes.

* test(manifest): add unit tests for authentication mode deserialization

- Introduced tests to validate the deserialization of known authentication modes in the SkillManifest.
- Added checks to ensure invalid authentication types and empty mode lists are correctly rejected.
- These tests enhance the robustness of the authentication configuration handling in the manifest module.

* refactor(messaging): simplify MessagingPanel by removing unused constants and improving input handling

- Removed unused constants related to channel statuses, authentication modes, and fallback definitions to streamline the MessagingPanel component.
- Updated input handling to use a more concise onChange function, enhancing code readability.
- Commented out placeholder and className properties for input fields to improve clarity and focus on essential functionality.

* refactor(webhooks): streamline TunnelList imports for improved clarity

- Combined the import statements for Tunnel type and tunnelsApi from the same module into a single line, enhancing code readability and organization.
2026-04-04 02:20:39 -07:00
Steven EnamakelandGitHub 4a228ee318 feat(conversations): enhance team usage display with new reset time formatting and limit pill component (#318)
- Added a `formatResetTime` function to display the reset time for the 5-hour spending limit in a user-friendly format.
- Introduced a `LimitPill` component to visually represent the usage percentage of the 5-hour and weekly budget limits.
- Updated the Conversations component to conditionally render messages based on team usage status, including a button for topping up when the budget is exhausted.
- Enhanced the budget display logic to include both 5-hour and weekly limits, improving clarity for users on their usage status.
2026-04-04 01:48:36 -07:00
Steven EnamakelandGitHub 530cb5c5c4 Update webhook routes for backend contract (#316) 2026-04-04 01:43:08 -07:00
51b730f9d6 feat(channels): implement Telegram + Discord UI and connection state (#286) (#317)
* feat(channels): extract shared constants to lib/channels/definitions

Move FALLBACK_DEFINITIONS, STATUS_STYLES, and AUTH_MODE_LABELS from
MessagingPanel into a shared module so both the settings panel and
the upcoming Channels page can reuse them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelStatusBadge, ChannelFieldInput, ChannelCapabilities

Reusable UI primitives for the Channels page: status pill badge,
credential form input, and capability chip list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add useChannelDefinitions hook

Shared hook that loads channel definitions and status from the core
RPC, falls back to local definitions, and syncs Redux state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelSelector with active route display

Tab bar component showing Web / Telegram / Discord with connection
status badges and active route summary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add TelegramConfig and DiscordConfig with managed DM flow

Channel-specific config panels with per-auth-mode credential fields,
connect/disconnect, status badges, and error handling. TelegramConfig
includes the managed DM deep link initiation flow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add ChannelConfigPanel dispatcher and WebChannelConfig

ChannelConfigPanel switches between Telegram/Discord/Web configs based
on selection. WebChannelConfig shows a simple always-connected card.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(channels): add Channels page, route, and sidebar update

Top-level /channels page with ChannelSelector + ChannelConfigPanel.
Updates sidebar nav to point to /channels instead of /settings/messaging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor(channels): simplify MessagingPanel with shared hook and components

Replace inline loading logic with useChannelDefinitions hook, inline
status badges with ChannelStatusBadge, and inline capability chips
with ChannelCapabilities. Reduces duplication with the new Channels page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(channels): keep managed dm in a reviewable UI state for #286

* style(channels): apply formatter output for #286

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 01:42:38 -07:00
Steven EnamakelandGitHub 90f7a0dc54 feat(webhooks): add developer webhook debug panel (#314)
* feat(webhooks): add Webhooks Debug Panel and related functionality

- Introduced a new Webhooks Debug Panel for inspecting registered webhook tunnels and viewing captured request/response logs.
- Added necessary backend support for listing webhook registrations and logs, as well as clearing logs.
- Updated Developer Options to include a route for the new Webhooks Debug Panel.
- Enhanced core RPC client to support new webhook-related commands and events.
- Implemented logging and error handling for webhook requests in the backend.

This feature enhances developer tooling for monitoring and debugging webhook interactions.

* feat(webhooks): add Webhooks Debug Panel and related functionality

- Introduced a new Webhooks Debug Panel for inspecting registered webhook tunnels and captured request logs.
- Added functionality to list webhook registrations and logs, clear logs, and display real-time updates.
- Updated Developer Options to include the new Webhooks section.
- Enhanced core RPC client to support new webhook-related commands and events.
- Implemented backend support for webhook event handling and logging.

This feature aims to improve developer tooling for monitoring and debugging webhook interactions.

* feat(webhooks): enhance TunnelList and useWebhooks for echo registration

- Updated TunnelList component to include functionality for registering and unregistering echo for tunnels.
- Enhanced useWebhooks hook to support echo registration and unregistration, including real-time updates for tunnel activity.
- Added connection status display in the Webhooks page to indicate the connection state to the core service.
- Improved error handling and user feedback for echo toggle actions in the TunnelCard component.

These changes improve the user experience for managing webhook tunnels and their associated echo registrations.

* refactor(webhooks): streamline import of WebhookActivityEntry type

- Removed redundant import statement for WebhookActivityEntry in useWebhooks.ts.
- Updated the import to use a direct reference from the webhooksSlice, improving code clarity and maintainability.

* ran formatter
2026-04-03 15:04:45 -07:00
Cyrus GrayandGitHub 0472cf2c86 feat(ui): light theme redesign — part 2 (onboarding, nav bar, page layouts) (#309)
* feat(ui): full light theme redesign based on Figma design tokens

Redesign the entire app from dark glass-morphism to a clean light theme
per the Figma reference (OpenHuman-Prod / Ref for mithil). This is a
purely visual change — zero logic, handlers, state, or API changes.

- Update Tailwind color tokens: neutral grayscale, primary #2F6EF4,
  success #34C759, alert #E8A728, error #EF4444
- Switch global CSS from dark (black bg, white text) to light (#F5F5F5
  bg, #171717 text)
- Replace left MiniSidebar with bottom BottomTabBar (Home, Chat, Skills,
  Intelligence, Automation, Notification)
- Add Settings gear icon on Home page header for persistent access
- Restyle Home: white card, Welcome Onboard title, connection badge pill
- Restyle Chat: gray agent bubbles, blue user bubbles, white input with
  mic icon, circular send button, model pill selector
- Restyle Skills: white card, filter tabs, + Add button, skill rows
- Restyle Intelligence: light containers, filters, cards
- Convert all 25+ settings panels from dark to light theme
- Convert all shared components (modals, cards, inputs, status badges)

* fix(test): update ConnectionIndicator tests for pill badge redesign

The component no longer renders a description prop — it's now a compact
pill badge. Remove description-related test cases, add pill badge test.

* fix(ui): address CodeRabbit review — contrast, dead controls, regressions

- Remove unused description prop from ConnectionIndicator interface
- Fix Save Note button hover affordance (MemoryWorkspace)
- Fix low-contrast text in AccessibilityPanel vision summary
- Fix AIPanel metadata text contrast (gray-400 → stone-500)
- Fix ActionPanel spinner visibility on light bg variants
- Fix LocalModelPanel ollama link hover color
- Fix MessagingPanel error chip to light theme tokens
- Fix RecoveryPhrasePanel import inputs from dark to light tokens
- Fix TeamMembersPanel avatar initial contrast + modal name text
- Fix Intelligence refresh button text contrast
- Remove non-functional + Add button and filter tabs from Skills page

* feat(ui): center conversation page in a white card container

Match the Figma design where the chat is inside a centered white card
with rounded corners and shadow, consistent with the Skills page layout.

* feat(ui): wrap all remaining pages in centered white card containers

Apply the centered card layout (max-w-2xl, white bg, rounded-2xl,
shadow-soft) to every page for visual consistency with Figma designs:

- Settings: wrap Routes container in centered card with max-height
- Intelligence: centered card with padding
- Agents: centered card with empty state
- Invites: centered card, replace glass with white cards
- Webhooks: centered cards for tunnel list and activity
- Mnemonic: centered card, replace glass with white card
- Welcome: light bg, updated text colors

* fix(ui): stretch settings menu items to fill card container

Remove max-w-md constraint from SettingsHome scrollable area so menu
items fill the full width of the centered card wrapper.

* fix(ui): convert onboarding screens from dark to light theme

All onboarding steps (Welcome, LocalAI, ScreenPermissions, Analytics,
Tools, Skills, Connect, InviteCode, Mnemonic) and the overlay container
now use white cards with light backgrounds, matching the app redesign.

- Card containers: bg-black → bg-white with border-stone-200
- Info boxes: dark tinted → bg-stone-50 with border-stone-200
- Text: text-white → text-stone-900, secondary to text-stone-600
- Progress dots: inactive bg-stone-700 → bg-stone-300
- Toggle rows, permission badges, inputs all converted to light tokens

* fix(ui): fix onboarding Continue button hover turning green

Replace sage hover styles with proper primary blue hover (bg-primary-600)
on the shared OnboardingNextButton component.

* fix(ui): reapply light theme to Home.tsx after upstream merge overwrite

The merge with upstream (Local AI preset bootstrap PR #304) reverted
Home.tsx to the dark theme. Reapply the Figma-based light redesign while
preserving the new first-run bootstrap logic from upstream.

* fix(ui): light theme cleanup for MemoryWorkspace component

Remaining dark-theme classes from upstream merge — update borders,
text colors, and backgrounds to match light theme.

* feat(ui): match Figma floating pill nav bar exactly

- Floating centered pill shape with rounded-full, white bg, subtle
  border and shadow
- 5 tabs only: Chat, Skills, Intelligence, Automation, Notification
  (removed Home tab per Figma)
- Horizontal icon + label layout (not stacked)
- Active state: bg-stone-100 with bold text
- No dock to bottom edge — floats with padding

* fix(ui): increase nav bar spacing to match Figma exactly

Wider gaps (gap-6), more padding, larger touch targets, and bolder
active state to match the zoomed Figma reference.

* feat(ui): add Home tab back to bottom navigation

* feat(ui): add Settings tab to nav bar, replace Home gear with notification bell

- Add Settings tab as last item in bottom navigation
- Home page top-right icon now shows notification bell linking to
  /settings/messaging instead of gear icon linking to /settings
2026-04-03 13:23:48 -07:00
53b3d67460 fix(memory): ingest entities/relations after skill sync (#292) (#313)
* fix(memory): ingest entities/relations after skill sync (#292)

After store_skill_sync persists a raw document, call ingest_doc to
extract entities and relations into the memory graph. For Notion syncs,
individual pages are extracted from the sync blob and ingested
separately (keyed by page ID) so GLiNER operates on clean page text
rather than a monolithic JSON blob. Other skills ingest the full
content as a single document.

Closes #292

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: apply cargo fmt to event_loop.rs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(memory): use page_key for ingestion dedup, strip credentials

- Use page_key (page-{id}) as the ingestion document key to match
  store_skill_sync, ensuring consistent dedup on re-sync
- Strip __oauth_credential from content before ingesting in the
  fallback (non-Notion) branch to prevent credentials in the graph
- Add tests for strip_credentials

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 11:38:34 -07:00
Steven EnamakelandGitHub 9bf2b68a11 Fix Ollama download retries and progress reporting (#312)
* Fix Ollama download retry loop after interruptions

* Aggregate Ollama pull progress across layers
2026-04-03 10:39:20 -07:00
Steven EnamakelandGitHub 4022b40a02 Fix Ollama workspace install flow (#310) 2026-04-03 10:13:32 -07:00
Steven EnamakelandGitHub 1ae4cdbcee feat(scripts): add core:stage script and enhance code-signing certificate generation (#311)
- Added a new script "core:stage" to package.json for staging the openhuman-app.
- Enhanced the setup-dev-codesign.sh script to generate a self-signed code-signing certificate using a custom OpenSSL configuration, improving the certificate's attributes for code signing.
2026-04-03 10:13:15 -07:00
github-actions[bot] a67379a914 chore(release): v0.51.6 v0.51.6 2026-04-03 15:57:59 +00:00
Cyrus GrayandGitHub b3e3e9bb96 feat(ui): full light theme redesign based on Figma design tokens (#307)
* feat(ui): full light theme redesign based on Figma design tokens

Redesign the entire app from dark glass-morphism to a clean light theme
per the Figma reference (OpenHuman-Prod / Ref for mithil). This is a
purely visual change — zero logic, handlers, state, or API changes.

- Update Tailwind color tokens: neutral grayscale, primary #2F6EF4,
  success #34C759, alert #E8A728, error #EF4444
- Switch global CSS from dark (black bg, white text) to light (#F5F5F5
  bg, #171717 text)
- Replace left MiniSidebar with bottom BottomTabBar (Home, Chat, Skills,
  Intelligence, Automation, Notification)
- Add Settings gear icon on Home page header for persistent access
- Restyle Home: white card, Welcome Onboard title, connection badge pill
- Restyle Chat: gray agent bubbles, blue user bubbles, white input with
  mic icon, circular send button, model pill selector
- Restyle Skills: white card, filter tabs, + Add button, skill rows
- Restyle Intelligence: light containers, filters, cards
- Convert all 25+ settings panels from dark to light theme
- Convert all shared components (modals, cards, inputs, status badges)

* fix(test): update ConnectionIndicator tests for pill badge redesign

The component no longer renders a description prop — it's now a compact
pill badge. Remove description-related test cases, add pill badge test.

* fix(ui): address CodeRabbit review — contrast, dead controls, regressions

- Remove unused description prop from ConnectionIndicator interface
- Fix Save Note button hover affordance (MemoryWorkspace)
- Fix low-contrast text in AccessibilityPanel vision summary
- Fix AIPanel metadata text contrast (gray-400 → stone-500)
- Fix ActionPanel spinner visibility on light bg variants
- Fix LocalModelPanel ollama link hover color
- Fix MessagingPanel error chip to light theme tokens
- Fix RecoveryPhrasePanel import inputs from dark to light tokens
- Fix TeamMembersPanel avatar initial contrast + modal name text
- Fix Intelligence refresh button text contrast
- Remove non-functional + Add button and filter tabs from Skills page

* feat(ui): center conversation page in a white card container

Match the Figma design where the chat is inside a centered white card
with rounded corners and shadow, consistent with the Skills page layout.

* feat(ui): wrap all remaining pages in centered white card containers

Apply the centered card layout (max-w-2xl, white bg, rounded-2xl,
shadow-soft) to every page for visual consistency with Figma designs:

- Settings: wrap Routes container in centered card with max-height
- Intelligence: centered card with padding
- Agents: centered card with empty state
- Invites: centered card, replace glass with white cards
- Webhooks: centered cards for tunnel list and activity
- Mnemonic: centered card, replace glass with white card
- Welcome: light bg, updated text colors

* fix(ui): stretch settings menu items to fill card container

Remove max-w-md constraint from SettingsHome scrollable area so menu
items fill the full width of the centered card wrapper.

* fix(ui): convert onboarding screens from dark to light theme

All onboarding steps (Welcome, LocalAI, ScreenPermissions, Analytics,
Tools, Skills, Connect, InviteCode, Mnemonic) and the overlay container
now use white cards with light backgrounds, matching the app redesign.

- Card containers: bg-black → bg-white with border-stone-200
- Info boxes: dark tinted → bg-stone-50 with border-stone-200
- Text: text-white → text-stone-900, secondary to text-stone-600
- Progress dots: inactive bg-stone-700 → bg-stone-300
- Toggle rows, permission badges, inputs all converted to light tokens

* fix(ui): fix onboarding Continue button hover turning green

Replace sage hover styles with proper primary blue hover (bg-primary-600)
on the shared OnboardingNextButton component.

* fix(ui): reapply light theme to Home.tsx after upstream merge overwrite

The merge with upstream (Local AI preset bootstrap PR #304) reverted
Home.tsx to the dark theme. Reapply the Figma-based light redesign while
preserving the new first-run bootstrap logic from upstream.

* fix(ui): light theme cleanup for MemoryWorkspace component

Remaining dark-theme classes from upstream merge — update borders,
text colors, and backgrounds to match light theme.
2026-04-03 21:05:59 +05:30
735152cb3f feat(memory): surface entity types in recall/query API and UI (#207) (#302)
* fix: patch whisper-rs-sys for Windows MSVC static CRT (/MT)

The upstream whisper-rs-sys builds whisper.cpp via CMake which
defaults to /MD (dynamic CRT), but Rust and all other C deps
use /MT (static CRT). This causes LNK2038/LNK1169 linker errors
on Windows.

Patch whisper-rs-sys from tinyhumansai/whisper-rs-sys fork which
adds config.static_crt(true) and overrides all per-config CMake
flags (Debug/Release/MinSizeRel/RelWithDebInfo) from /MD to /MT.

Closes #273

* feat: surface entity types in memory recall/query text context

Entity types extracted by GLiNER (person, project, organization, etc.)
were stored in graph attrs but not rendered in LLM context text.
Relations now display as Alice (PERSON) -[OWNS]-> Atlas (PROJECT)
instead of Alice -[OWNS]-> Atlas.

Closes #207

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(memory): add entity type UI rendering (#207)

- New MemoryTextWithEntities component with colour-coded type badges
- MemoryWorkspace + MemoryDebugPanel pass structured entity data
- MemoryGraphMap shows entity types below node labels
- MemoryInsights shows EntityTypeBadge for subject/object types
- tauriCommands returns typed MemoryQueryResult with entities
- Updated useConsciousItems and tests for new return types

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: fix prettier formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: fix cargo fmt in query.rs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use local regex instead of mutating module-level lastIndex

Avoids react-hooks/immutability ESLint error by using a non-global
regex for the .test() check instead of resetting ENTITY_TYPE_RE.lastIndex.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: sanil jain <jainsanil18@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 20:34:55 +05:30
YellowSnnowmannandGitHub 15ee9220a8 Local AI: unified preset bootstrap, first-run Home flow, and resilient model pulls (#304)
* feat(local-ai): unify preset bootstrap, first-run Home flow, and pull retries

- Add localAiBootstrap helpers (preset apply + asset download with retries)
- Expose selected_tier from local_ai.presets; apply recommended tier in core bootstrap when unset
- Extend Ollama pull and large-asset HTTP timeouts; retry interrupted pulls
- Wire Home/onboarding to unified bootstrap; improve download snackbar vs status
- Add Vitest/Rust tests for bootstrap and UI flows

* fix: synchronize Local AI progress UI and add error logging for manual bootstrap attempts

* refactor(tests): streamline skill installation tests by removing HTTP server setup

- Simplified test_skill_install_creates_files and test_skill_install_checksum_verification by replacing the HTTP server setup with direct file creation using tempfile.
- Updated download and manifest URLs to point to local file paths instead of server endpoints, enhancing test reliability and performance.

* feat(home): implement retry logic for local AI bootstrap attempts

- Added a mechanism to track and limit the number of bootstrap attempts for local AI initialization in the Home component.
- Introduced a constant for maximum attempts and updated error handling to log failures after exceeding the limit, improving robustness during the first-run process.
2026-04-03 20:29:38 +05:30
cc55323025 Fix/202: e2e logout relogin onboarding (#305)
* fix(e2e): add logout/re-login onboarding overlay spec and shared helpers (#202)

- Add isOnboardingOverlayVisible, waitForOnboardingOverlayVisible,
  waitForOnboardingOverlayHidden to shared-flows for precise overlay
  lifecycle assertions across specs.
- Add logoutViaSettings helper: navigates to Settings, clicks Log out,
  handles optional confirmation dialog, asserts logged-out state —
  consolidating logout logic that was duplicated per-spec.
- Add waitForLoggedOutState helper returning the first welcome-screen
  marker found (Welcome / Sign in / Login / Get Started).
- New spec logout-relogin-onboarding.spec.ts verifies:
    1. Fresh login completes onboarding and reaches Home.
    2. Logout clears persisted auth/onboarding state (token + all
       per-user onboarding maps reset to {}).
    3. Re-login with a delayed /telegram/me response does NOT show
       the overlay prematurely (proves no stale userLoadTimedOut leak).
    4. Once the fresh-session timeout elapses the overlay appears with
       clean Welcome + Skip markers and a /telegram/me call is made.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(e2e): add telegramMeDelayMs mock behavior for onboarding timing tests (#202)

- Add getDelayMs/sleep utilities to mock-api-core.mjs so individual
  endpoints can honour a configurable delay set via __admin/behavior.
- Wire telegramMeDelayMs into the GET /telegram/me handler so the
  logout-relogin spec can simulate a slow profile fetch and assert that
  the onboarding overlay does not fire before the timeout threshold.
- Reformat long if-conditions and json() call sites to stay within line
  length limits (no logic changes).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 17:30:58 +05:30
Cyrus GrayandGitHub 0bb1518279 Revert "fix(e2e): rewrite performFullLogin and extend walkOnboarding for 6-st…" (#306)
This reverts commit 11b708a980.
2026-04-03 17:30:05 +05:30
11b708a980 fix(e2e): rewrite performFullLogin and extend walkOnboarding for 6-step flow (#200) (#303)
- Extract performFullLogin to shared-flows so all specs can reuse it;
  remove the duplicate local copy from auth-access-control.spec.ts.
- Add completeMnemonicStep helper to handle the recovery-phrase step
  (checkbox tick + Finish Setup click) introduced in the 6-step flow.
- Extend ONBOARDING_OVERLAY_TEXTS with recovery-phrase labels so
  onboardingOverlayLikelyVisible detects the new step correctly.
- Increase walkOnboarding loop cap from 6 to 7 passes to cover the
  extra step; fall back to dumpAccessibilityTree on unexpected stalls.
- Update auth-access-control spec to call the shared performFullLogin
  with the postLoginVerifier callback for consume/profile assertions.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 17:28:25 +05:30
github-actions[bot] e2e1beefe3 chore(release): v0.51.5 v0.51.5 2026-04-03 11:56:02 +00:00
4027f50c9e feat(memory): add bulk namespace clear operation (#205) (#301)
* fix: patch whisper-rs-sys for Windows MSVC static CRT (/MT)

The upstream whisper-rs-sys builds whisper.cpp via CMake which
defaults to /MD (dynamic CRT), but Rust and all other C deps
use /MT (static CRT). This causes LNK2038/LNK1169 linker errors
on Windows.

Patch whisper-rs-sys from tinyhumansai/whisper-rs-sys fork which
adds config.static_crt(true) and overrides all per-config CMake
flags (Debug/Release/MinSizeRel/RelWithDebInfo) from /MD to /MT.

Closes #273

* feat: add bulk namespace clear operation for memory

Add memory_clear_namespace RPC that atomically deletes all documents,
vector chunks, KV entries, and graph relations in a namespace. Includes
Tauri command wrapper and three tests verifying cleanup, no-op on empty
namespaces, and cross-namespace safety.

Closes #205

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(memory): add Clear Namespace UI to MemoryDebugPanel (#205)

Adds namespace selector, confirmation dialog, success/error feedback,
and auto-refresh after clearing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: fix prettier and cargo fmt formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: unwrap RpcOutcome envelope in memoryClearNamespace

callCoreRpc returns { result: T }, but memoryClearNamespace was returning
the raw envelope instead of unwrapping .result like other callers do.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: sanil jain <jainsanil18@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 17:23:23 +05:30
bd8d3ed15a fix(memory): clean up unused JWT token parameter in memory init (#204) (#300)
* fix: patch whisper-rs-sys for Windows MSVC static CRT (/MT)

The upstream whisper-rs-sys builds whisper.cpp via CMake which
defaults to /MD (dynamic CRT), but Rust and all other C deps
use /MT (static CRT). This causes LNK2038/LNK1169 linker errors
on Windows.

Patch whisper-rs-sys from tinyhumansai/whisper-rs-sys fork which
adds config.static_crt(true) and overrides all per-config CMake
flags (Debug/Release/MinSizeRel/RelWithDebInfo) from /MD to /MT.

Closes #273

* fix: clean up unused JWT token parameter in memory init

Memory is local-only (SQLite). The from_token() method accepted a JWT
but ignored it, always falling back to new_local(). Remove the dead
method, make jwt_token optional in MemoryInitRequest for backward
compat, and document the local-only design.

Closes #204

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: sanil jain <jainsanil18@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 17:23:02 +05:30
898fe13477 Feat: update complete onboarding helper (#299)
* fix(e2e): make completeOnboardingIfVisible resilient by delegating to walkOnboarding

The previous implementation did a single onboardingOverlayLikelyVisible()
check before calling walkOnboarding. This created a timing race: if onboarding
had not yet rendered at call time the helper returned early, leaving the
overlay blocking subsequent steps.

walkOnboarding already handles both cases correctly — it polls up to
8 × 400 ms for the overlay before giving up, then no-ops gracefully if not
visible. completeOnboardingIfVisible now delegates to it unconditionally,
eliminating the race without changing observable behaviour.

Also updates the section comment to accurately describe the current 5-step
onboarding sequence (Welcome → Local AI → Screen & Accessibility → Tools →
Skills) following the removal of MnemonicStep in #279.

Closes part of #201

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(e2e): use completeOnboardingIfVisible in conversations spec

conversations-web-channel-flow.spec.ts was the only spec that called
walkOnboarding directly instead of the shared completeOnboardingIfVisible
helper. Align it with all other specs so the single resilient code path
is used consistently.

Closes #201

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(e2e): add clang and cmake to Dockerfile dependencies

Updated the e2e Dockerfile to include clang and cmake as additional dependencies, enhancing the build environment for end-to-end testing.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 16:07:25 +05:30
Mega MindandGitHub b7b3d62c58 test(e2e): skill execution flow (core RPC + Skills UI) (#283)
* test(e2e): skill execution flow (core RPC + Skills UI)

- Add skill-execution-flow.spec: core.ping, skills start/list_tools/call_tool/stop
  via shared RPC helper, seeded QuickJS echo skill (same tree as Rust json_rpc_e2e).
- Add core-rpc helpers: WebView invoke on tauri-driver, Node fetch + port probe on
  Appium Mac2 (no WKWebView execute).
- Extend navigateViaHash with Mac2 sidebar label fallbacks for /skills, /home, etc.
- Wire yarn test:e2e:skill-execution and e2e-run-all-flows.

Refs: #68
Made-with: Cursor

* fix(e2e): address CodeRabbit review for skill execution PR

- core-rpc-node: honor OPENHUMAN_CORE_HOST and OPENHUMAN_CORE_PORT before port scan
- shared-flows: Mac2 navigateViaHash for /settings/billing; throw on unmapped hash;
  navigateToBilling fallback without WebView execute on Mac2
- skill-e2e-runtime: javascript manifest + removeSeededEchoSkill teardown
- skill-execution-flow: teardown seeded skill; document RPC shapes vs json_rpc_e2e;
  skip placeholder for future agent chat tool_calls

Made-with: Cursor
2026-04-03 12:00:01 +05:30
Cyrus GrayandGitHub de41bf8ec7 fix(onboarding): resolve overlay race condition between RPC and Redux state (#284)
OnboardingOverlay could reappear for already-onboarded users when the
core config RPC call failed (sidecar not ready, timeout). The catch block
hardcoded `false`, ignoring the persisted Redux `isOnboardedByUser` flag.

Now reads `selectIsOnboarded` as a fallback in the catch block and combines
both flags in shouldShow — either being true prevents the overlay. Also fixes
DEV_FORCE_ONBOARDING which was a no-op (identical ternary branches).

Closes #197
2026-04-03 11:38:39 +05:30
Mega MindandGitHub 04146bf0bf Fix/191 skills reliability upstream (#282)
* feat(skills): core RPC data stats, tool timeout env, ping state merge (#191)

- Add openhuman.skills_data_stats and SkillDataDirectoryStats (disk usage).
- Centralize tool execution timeout via OPENHUMAN_TOOL_TIMEOUT_SECS (tool_timeout).
- Apply timeout to skill event loop, agent tool loop, harness default, delegate.
- Ping scheduler: merge connection_error into published_state via registry.
- JSON-RPC e2e: assert skills_data_stats.

Closes #214
Closes #218
Part of #213 (backend)

Made-with: Cursor

* feat(app): skills sync stats UI, reconnect resync, FE timeouts, chat errors (#191)

- useSkillDataDirectoryStats + Skills.tsx merge disk stats with skill state.
- resyncRunningSkillsAfterReconnect on socket connect; disconnectSkill OAuth cleanup in finally.
- withTimeout for callTool/triggerSync; VITE_TOOL_TIMEOUT_SECS in app .env.example.
- Structured ChatSendError in Conversations (data-chat-send-error-code).

Closes #213
Closes #215
Closes #216
Closes #217
Closes #219

Made-with: Cursor

* test(e2e): onboarding helpers and skills smoke specs (#191)

- shared-flows: 5-step onboarding, completeOnboardingIfVisible.
- auth-access-control + voice-mode use shared helpers.
- skills-registry: named skill assertion; new skill-oauth, multi-round, reconnect, lifecycle specs.

Closes #220
Closes #221
Closes #222
Closes #223
Closes #224
Part of #189 (E2E helpers)

Made-with: Cursor

* style: rustfmt + Prettier for CI (PR #282)

Fix Type Check workflow: prettier --check and cargo fmt --check.

Made-with: Cursor

* fix: PR #282 review — tool timeout config, tool_timeout module, CI diagnostics

- Centralize VITE_TOOL_TIMEOUT_SECS in config.ts (TOOL_TIMEOUT_SECS)
- Move tool_timeout to folder module; merge_published_state broadcasts SKILL_STATE_CHANGED
- Resync guard after socket reconnect; qjs_engine logs data dir stat errors
- E2E: registry/lifecycle/multi-round failure diagnostics; onboarding label constant
- chatSendError arrow export; rustfmt/import grouping in event_loop

Made-with: Cursor

* test(e2e): add Gmail skill end-to-end tests

- Introduced a comprehensive end-to-end test suite for the Gmail skill, covering the full lifecycle from discovery to OAuth completion and email management.
- Implemented two modes: a lifecycle-only mode that validates the skill's event loop without real credentials, and a live mode that interacts with the Gmail API using actual credentials.
- Added detailed environment variable requirements and usage instructions for both testing modes.

Closes #XXX (replace with relevant issue number if applicable)
2026-04-02 15:25:31 -07:00
a57dcfdd44 fix(windows): fix install script and add Windows build workflow (#281)
* feat(ci): add GitHub Actions workflow for Windows build

- Introduced a new workflow to automate the build process for Windows x64.
- Configured steps for checking out the repository, setting up Node.js, installing Rust, caching dependencies, and building the frontend and Tauri app.
- Added artifact upload steps for MSI, NSIS, and standalone CLI binaries.
- Enhanced the installation script to support direct execution and improved error handling for various conditions.

* feat(ci): enable Windows x64 build in release workflow

Uncomment the windows-latest matrix entry, add a PowerShell step to
package the CLI as a .zip (instead of .tar.gz), and require a Windows
installer asset (MSI or NSIS exe) in the publish-release validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 13:27:10 -07:00
Cyrus GrayandGitHub 8b332c6735 fix(tauri): resolve "Command restart_core_process not found" stale ACL (#280)
* refactor(onboarding): remove MnemonicStep and Open Accessibility button, add Recovery Phrase settings panel

- Remove "Open Accessibility" button from ScreenPermissionsStep (step 2)
- Remove MnemonicStep (step 5) from onboarding, reducing total steps from 6 to 5
- Move onboarding completion logic (setOnboardedForUser + setOnboardingCompleted) into handleSkillsNext
- Add RecoveryPhrasePanel in Settings with the same BIP39 generate/import functionality
- Wire recovery-phrase route into Settings.tsx, SettingsHome menu, and useSettingsNavigation

* fix(recovery-phrase): add aria-labels to import inputs and word-count selector

Address CodeRabbit review feedback:
- Add aria-label to each recovery phrase word input for screen readers
- Add word-count selector (12/15/18/21/24) so longer phrases can be
  entered manually, not just via paste

* fix(recovery-phrase): remove auto-advance on single char and guard clipboard fallback

Address CodeRabbit round 2:
- Remove auto-focus-advance after single character input (was breaking
  manual word entry — typing 'abandon' would split across slots)
- Guard execCommand('copy') fallback with return value check

* fix(tauri): resolve "Command restart_core_process not found" by fixing stale ACL builds

Add cargo:rerun-if-changed directives for permissions/ and capabilities/
directories in build.rs so Tauri regenerates ACL tables on incremental
builds. Also add missing permission entries for dictation hotkey commands.

Closes #270
2026-04-02 23:02:48 +05:30
Cyrus GrayandGitHub e941af1fc7 refactor(onboarding): remove MnemonicStep and Open Accessibility button, add Recovery Phrase settings panel (#279)
* refactor(onboarding): remove MnemonicStep and Open Accessibility button, add Recovery Phrase settings panel

- Remove "Open Accessibility" button from ScreenPermissionsStep (step 2)
- Remove MnemonicStep (step 5) from onboarding, reducing total steps from 6 to 5
- Move onboarding completion logic (setOnboardedForUser + setOnboardingCompleted) into handleSkillsNext
- Add RecoveryPhrasePanel in Settings with the same BIP39 generate/import functionality
- Wire recovery-phrase route into Settings.tsx, SettingsHome menu, and useSettingsNavigation

* fix(recovery-phrase): add aria-labels to import inputs and word-count selector

Address CodeRabbit review feedback:
- Add aria-label to each recovery phrase word input for screen readers
- Add word-count selector (12/15/18/21/24) so longer phrases can be
  entered manually, not just via paste

* fix(recovery-phrase): remove auto-advance on single char and guard clipboard fallback

Address CodeRabbit round 2:
- Remove auto-focus-advance after single character input (was breaking
  manual word entry — typing 'abandon' would split across slots)
- Guard execCommand('copy') fallback with return value check
2026-04-02 21:57:00 +05:30
sanil-23andGitHub 945a5c4a02 feat: subconscious loop — local-model background awareness via heartbeat (#268)
* feat: subconscious loop — local-model background awareness via heartbeat

Add a subconscious inference layer to the heartbeat engine. On each
tick, the engine reads HEARTBEAT.md tasks, builds a delta-based
situation report (memory docs, graph relations, skills health,
environment), and evaluates them with the local Ollama model.

Architecture:
- HeartbeatEngine (scheduler) delegates to SubconsciousEngine (brain)
- HeartbeatConfig extended with inference_enabled, context_budget_tokens
- No separate SubconsciousConfig — all config lives under [heartbeat]
- Default HEARTBEAT.md ships with 3 active tasks (email, deadlines, skills)

Subconscious module (src/openhuman/subconscious/):
- engine.rs: tick logic, local model inference, escalation to cloud model
- situation_report.rs: delta assembler (memory, graph, skills, env, tasks)
- prompt.rs: task-driven system prompt for local model
- decision_log.rs: dedup tracking with 24h TTL and acknowledgment
- types.rs: Decision (noop/act/escalate), TickOutput, RecommendedAction
- schemas.rs: RPC controllers (subconscious_status, subconscious_trigger)
- integration_test.rs: two-tick lifecycle test with fixtures

Decision flow:
- noop: no changes, skip — no LLM call wasted
- act: local model recommends actions → stored in memory KV
- escalate: calls cloud model to resolve → concrete actions stored

Verified with real Ollama inference (gemma3:4b):
- Tick 1: ingested gmail+notion → "act: deadline needs attention" (high)
- Tick 2: ingested state changes → "act: deadline moved" (high)
- Skills health section populated from live skill registry

Closes #145

* feat: add subconscious_actions RPC endpoint

New endpoint openhuman.subconscious_actions returns stored action
entries from the subconscious KV namespace, sorted by most recent
first, with configurable limit (default 20).

Response format:
{
  "entries": [
    { "tick_at": 1775117975.58, "actions": [...] }
  ],
  "count": 1
}

The upcoming subconscious page will call this to display
notifications and recommended actions to the user.

* fix: budget underflow and UTF-8 panic in situation report truncation

- Use saturating_add for newline byte to prevent underflow when
  section exactly fills the remaining budget
- Truncate at valid UTF-8 char boundary using char_indices instead
  of raw byte slicing, which panicked on multibyte characters
- Add tests for exact-fit and multibyte truncation

* fix: address CodeRabbit review — shared engine, dedup, consistent schema

Fixes from CodeRabbit review on PR #268:

- #8 Two engine instances: Add global.rs singleton shared between
  HeartbeatEngine::run() and RPC handlers. Both use get_or_init_engine()
  so decision log, counters, and last_tick_at are always in sync.

- #3 Dedup disabled: tick() now extracts actual document IDs from
  memory via build_situation_report_with_doc_ids() and passes them
  to decision_log.record(). filter_unsurfaced() actually filters now.

- #5 Decision log not loaded on trigger: tick() loads persisted log
  from KV on first execution (total_ticks == 0), not only from run().

- #4 Inconsistent action schema: handle_escalation() normalizes agent
  response into RecommendedAction[] via normalize_escalation_response().
  Both act and escalate paths store the same schema.

- #7 Key collision: store_actions() uses millisecond timestamp + random
  suffix instead of second-precision truncation.

- #10 No-changes unreachable: tick() checks has_new_data (unsurfaced
  doc IDs) OR has_memory_changes (report text) instead of naive string
  matching on environment section.

* fix: include document content in situation report, not just titles

The local model needs actual content to evaluate HEARTBEAT.md tasks
meaningfully. Previously it only saw titles like "Deadline reminder"
with no way to know if it's urgent.

Now recalls content per namespace (up to 500 chars each, max 10
namespaces) via client.recall_namespace(). The model sees actual
email text and page content alongside the task checklist.

* fix: timestamp parsing, byte-boundary slicing, and truncation overshoot

- schemas.rs: split on first ':' after 'actions:' prefix before parsing
  timestamp, so keys like 'actions:123456:xyz' parse correctly
- situation_report.rs: use truncate_at_char_boundary() for error strings
  instead of raw byte slice which panics on multibyte characters
- situation_report.rs: fix append_section and truncate_at_char_boundary
  to use char END offset (i + len_utf8) in take_while condition, so
  multibyte chars that start before but end after the budget are excluded
2026-04-02 21:51:09 +05:30
YellowSnnowmannandGitHub 8acd34d2a9 Feat/add dictation (#278)
* feat(dictation): implement voice dictation feature with overlay and settings panel

- Added DictationOverlay component for real-time speech-to-text functionality, including recording, transcribing, and error handling.
- Introduced useDictation hook to manage audio recording and transcription processes.
- Created DictationPanel for configuring dictation settings, including hotkey registration and floating launcher preferences.
- Updated SettingsHome to include a navigation option for the new dictation feature.
- Integrated dictation state management with Redux, allowing for persistent settings and status checks.
- Enhanced Tauri commands for registering global hotkeys and managing dictation state.

This update provides a comprehensive voice dictation experience, enabling users to transcribe speech to text using local AI.

* fix(dictation): update DictationOverlay to conditionally render based on floating launcher state

- Reintroduced the useAppDispatch and useAppSelector hooks for state management.
- Added showFloatingLauncher to the state selection, ensuring the overlay only renders when the floating launcher is active.
- Simplified the return statement for position calculations in the drag handler.
- Improved code readability by formatting JSX elements for better clarity.

This update enhances the user experience by ensuring the dictation overlay behaves correctly based on the application's state.

* feat(settings): add dictation route and panel to settings navigation

- Updated the SettingsRoute type to include 'dictation' as a new route.
- Integrated DictationPanel into the Settings page for user configuration.
- Enhanced dictation state management by adding showFloatingLauncher to the dictationSlice, allowing for better control of the dictation overlay.

This update improves the settings navigation and user experience by providing access to dictation features directly from the settings menu.

* feat(dictation): integrate DictationOverlay and enhance dictation settings

- Added DictationOverlay component to the main App for improved user interaction with dictation features.
- Updated DictationPanel to include a new preference for showing a floating launcher, enhancing user control over dictation functionality.
- Enhanced state management by incorporating showFloatingLauncher into the dictationSlice, allowing for better configuration of the dictation experience.

This update improves the overall user experience by providing direct access to dictation features and customizable settings.

* feat(dictation): enhance DictationOverlay and Conversations for improved text insertion

- Added functionality to insert text into editable elements from the DictationOverlay, improving user interaction with dictation features.
- Implemented event listener in Conversations to handle custom dictation insert events, allowing seamless integration of transcribed text into the input field.
- Updated state management to ensure the correct editable target is used for text insertion, enhancing overall user experience.

This update streamlines the dictation process, making it more intuitive and responsive to user actions.

* fix(dictation): refine STT availability logic in dictationSlice

- Updated the logic for determining STT availability to ensure it only considers the model file as available when both the model file exists and there is a method to run inference (either the in-process engine is loaded or a whisper binary is present).
- This change prevents misleading user experiences by avoiding the display of the overlay when the necessary components for transcription are not available.

This update enhances the reliability of the dictation feature by providing clearer conditions for STT availability.

* refactor(dictation): streamline position management in DictationOverlay

- Removed redundant state management for the position of the dictation overlay, consolidating logic to initialize and reset the position based on the current status.
- Introduced a new `resetLauncherPosition` function to simplify resetting the overlay's position when necessary.
- Updated event handling to ensure the overlay's position is reset appropriately after text insertion actions.

This update enhances the clarity and efficiency of the DictationOverlay component, improving user experience during dictation interactions.

* refactor(dictation): improve hotkey registration and unregistration process

- Streamlined the logic for registering and unregistering dictation hotkeys, ensuring that old shortcuts are properly managed before new ones are registered.
- Introduced rollback mechanisms to restore previous shortcuts in case of registration failures, enhancing reliability.
- Simplified error handling and logging for better clarity during the hotkey management process.

This update enhances the robustness of the dictation feature by ensuring a smoother transition between hotkey states.

* refactor:  delete unncessesary pr md file

* refactor(dictation): enhance dictation functionality and error handling
 compatibility.

* refactor(dictation): improve code formatting and readability across components

- Enhanced formatting in DictationOverlay for better clarity in asynchronous action handling.
- Streamlined text extraction logic in useDictation for improved readability.
- Consolidated model directory setting in DictationPanel to a single line for simplicity.
- Improved logging consistency in tauriCommands and speech service files.

These changes enhance the maintainability and readability of the dictation-related components.

* refactor(dictation): manage DictationOverlay position based on status changes

- Introduced a reference to track the previous status of the dictation overlay.
- Updated the effect to reset the overlay's position when transitioning from 'idle' to any other status, enhancing user experience during dictation sessions.

This change improves the responsiveness of the DictationOverlay component to status changes, ensuring a smoother interaction for users.

* refactor(tests): update MemoryWorkspace tests to specify span selector

- Modified test assertions in MemoryWorkspace.test.tsx to include a selector for 'span' elements when checking for text presence.
- This change enhances the specificity of the tests, ensuring they accurately target the intended elements in the rendered component.

These updates improve the reliability of the MemoryWorkspace component tests.
2026-04-02 20:54:46 +05:30
Cyrus GrayandGitHub fe2102c513 fix(onboarding): surface LocalAI download failures with retry notification (#271)
* fix(onboarding): surface LocalAI download failures with retry notification

Replace silent .catch(() => {}) in LocalAIStep with error reporting
that surfaces a dismissible portal-based error banner in Onboarding.tsx.
Both download failures are combined into a single notification with a
Retry button. Auto-dismisses after 10 seconds.

Closes #194

* fix(onboarding): add retry re-entry guard to prevent duplicate downloads

Address CodeRabbit review: guard retryDownload with a ref to prevent
overlapping concurrent download attempts on rapid Retry clicks. Uses
Promise.allSettled to reset the guard after both promises settle.

* docs(memory): document LocalAI download error handling and macOS Tahoe build workaround

- Add guidance on surfacing LocalAI download errors with an error banner in onboarding (#194).
- Detail build issues with `whisper-rs` on macOS Tahoe and provide a temporary patch workaround for Apple Silicon.
2026-04-02 20:35:15 +05:30
Cyrus GrayandGitHub 42290d57f2 enhance(onboarding): standardize Next/Continue button across all steps (#277)
* fix(onboarding): surface LocalAI download failures with retry notification

Replace silent .catch(() => {}) in LocalAIStep with error reporting
that surfaces a dismissible portal-based error banner in Onboarding.tsx.
Both download failures are combined into a single notification with a
Retry button. Auto-dismisses after 10 seconds.

Closes #194

* fix(onboarding): add retry re-entry guard to prevent duplicate downloads

Address CodeRabbit review: guard retryDownload with a ref to prevent
overlapping concurrent download attempts on rapid Retry clicks. Uses
Promise.allSettled to reset the guard after both promises settle.

* docs(memory): document LocalAI download error handling and macOS Tahoe build workaround

- Add guidance on surfacing LocalAI download errors with an error banner in onboarding (#194).
- Detail build issues with `whisper-rs` on macOS Tahoe and provide a temporary patch workaround for Apple Silicon.

* enhance(onboarding): standardize Next/Continue button across all steps

Extract shared OnboardingNextButton component with consistent styling,
prop naming (onNext), and text convention (Continue/Finish Setup).
ScreenPermissionsStep now always shows Continue so users can skip.

Closes #274

* fix(test): update LocalAIStep test to match new button label

Button text changed from "Use Local Models" to "Continue" in #274.

* fix(e2e): add Finish Setup to onboarding visibility detection

Ensures walkOnboarding() detects the overlay when resumed on the
final MnemonicStep where only "Finish Setup" is visible.
2026-04-02 20:30:16 +05:30
sanil-23andGitHub d73ccda13d fix: patch whisper-rs-sys for Windows MSVC static CRT (/MT) (#276)
The upstream whisper-rs-sys builds whisper.cpp via CMake which
defaults to /MD (dynamic CRT), but Rust and all other C deps
use /MT (static CRT). This causes LNK2038/LNK1169 linker errors
on Windows.

Patch whisper-rs-sys from tinyhumansai/whisper-rs-sys fork which
adds config.static_crt(true) and overrides all per-config CMake
flags (Debug/Release/MinSizeRel/RelWithDebInfo) from /MD to /MT.

Closes #273
2026-04-02 20:20:15 +05:30
YellowSnnowmannandGitHub 79fe36b41d fix: remove the deadlock when re-enabling an already-active session and add unit tests for ScreenIntelligenceDebugPanel and ScreenIntelligencePanel (#275) 2026-04-02 20:07:15 +05:30
github-actions[bot] d930c478a2 chore(release): v0.51.4 v0.51.4 2026-04-02 13:45:30 +00:00
github-actions[bot] c1f378521d chore(release): v0.51.3 2026-04-02 12:58:50 +00:00
Mega MindandGitHub 875d01f309 feat(permissions): add new service-related permissions to allow-core-process.toml (#272)
- Introduced permissions for service management, including installation, starting, stopping, status checking, and uninstallation, enhancing the application's capability to manage services directly.
2026-04-02 18:20:27 +05:30
Cyrus GrayandGitHub 85f5ee58cf fix(onboarding): reset OnboardingOverlay local state on logout (#269)
* fix(onboarding): reset OnboardingOverlay local state on logout

userLoadTimedOut, hasWorkspaceFlag, and dismissed survived across
logout/re-login because they were local useState never cleared when
token became null. Add a useEffect that resets all three on logout
so re-login starts from a clean state.

Closes #192

* fix(test): address CodeRabbit review — fix test timing and stale docs

- Update memory.md to reference correct local state vars (onboardingCompleted
  instead of hasWorkspaceFlag/dismissed) after upstream refactor
- Fix test assertion text ("Skip" not "Set up later") after upstream rename
- Reset getOnboardingCompleted mock per-test to prevent cross-test pollution
- Remove fake timers approach; use user._id for userReady instead
2026-04-02 17:28:58 +05:30