Cas/clean tauri api layer#104
Draft
Cas Linden (CasLinden) wants to merge 14 commits into
Draft
Conversation
…bs to commands/updater.rs
… clearPinnedVersion
…in feedback-dialog
Contributor
📋 PR Overview
|
Contributor
nixmac Peekaboo E2E: ❌ FAIL
|
Contributor
Author
|
Think the build error intorudeced elsewhere in e2e changes is addressed by scott elsewhere |
Contributor
Author
|
Converting this to draft because it requires serious attention to consolidate with what was merged after |
Contributor
|
Massive diff. To address conflicts, I wonder if it would make sense to recreate it from original prompts. Probably best to tackle after the open PR inflation situation has been taken under control :) |
Contributor
Author
I wondered that too when I put this on draft, but I think I can salvage it, maybe. And roger about tackling this later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In
tauri-api.ts:In components:
tauri-api.tsDocs
src-tauri/src/README.md— updatedcommands/entry to reflect current handler list andtauri-api.tsas the call sitesrc/README.md— new frontend architecture overviewTest Plan
Feedback type refactor
I managed to spin up the hono-api receiving these locally, and though drizzle kit was able to confirm that the type refactor does not block or meaningfully impact the ability to receive error data
{"text":"It all went to shit","type":"bug","email":"cas@darkmatter.io","share":{"appLogs":true,"systemInfo":true,"usageStats":true,"evolutionLog":true,"changedNixFiles":true,"currentAppState":true,"buildErrorOutput":true,"aiProviderModelInfo":true,"flakeInputsSnapshot":true},"createdAt":"2026-05-08T05:46:13.022Z","systemInfo":{"arch":"aarch64","osName":"macos","osVersion":"26.3","appVersion":"0.22.0","nixVersion":"nix (Determinate Nix 3.13.2) 2.32.4"},"usageStats":{"extra":{"last_updated_at":"2026-05-07T06:33:26.103448+00:00","total_iterations":11,"failed_evolutions":0,"successful_evolutions":5},"successRate":100,"avgIterations":2.2,"lastComputedAt":"2026-05-08T05:46:01.201211+00:00","totalEvolutions":5},"expectedText":"Not sure, you tell me","appLogsContent":"evaluating file '......,"aiProviderModelInfo":{"latencyMs":null,"iterations":1,"evolveModel":null,"totalTokens":629,"summaryModel":null,"buildAttempts":0,"evolveProvider":"vllm","summaryProvider":"vllm"},"evolutionLogContent":"{\"buildAttempts\":0,\"createdAt\":1778135606,\"id\":\"abc1f522-7ce7-46ef-8d0d-a3f29497d83a\",\"iterations\":1,\"prompt\":\"can you help me add homebrew packages?\",\"state\":\"conversational\",\"summary\":\"<truncated>\",\"totalTokens\":629}","flakeInputsSnapshot":{"nixpkgs":{"rev":"bc57abace07689cfd34203aa5fb4027514895987","narHash":"sha256-iw3XDIG6xxk+AZTcawCLHf6i9i4tXRzLZEoV9xhRToQ=","lastModified":1777946660},"nix-darwin":{"rev":"8c62fba0854ba15c8917aed18894dbccb48a3777","narHash":"sha256-8wURyQMdDkGUarSTKOGdCuFfYiwa3HbzwscUfn3STDE=","lastModified":1777780666},"home-manager":null},"currentAppStateSnapshot":{"hostAttr":"macbook","configDir":"/Users/caslinden/.darwin","evolution":{"state":"conversational","iterations":1,"hasEvolution":true,"buildAttempts":0},"timestamp":"2026-05-08T05:46:01.199652+00:00","feedbackType":"bug"}}One test fails for directory picker. Test case received conflicted updates both of which were kept in a merge conflict resolution by copilot-swe-agent.
Vitest — unit project
src/stores/widget-store.test.tssrc/hooks/use-permissions.test.tssrc/components/widget/widget.test.tsxsrc/components/widget/controls/directory-picker.test.tsxignores setHostAttr failures without breaking the happy path— expected["mbp"], got[](line 223). 9 of 10 tests pass. Pre-existing failure: identical test code/mocks exist onorigin/developand reproduce the same failure (verified by checking out develop's version of the file and running). The fix commit55dd4a91is already an ancestor of HEAD; merging develop would not resolve it. Root cause: mockedsetDirwrapper callsmockListHosts()(default[]) instead of using thehostsfield frommockSetDir.mockResolvedValue({hosts: ["mbp"]}).src/components/widget/utils.test.tssrc/components/kibo-ui/nix-editor/use-nix-editor.test.tssrc/components/ui/ui.test.tsxsrc/lib/ai-provider-validation.test.tsVitest — storybook project (auto-snapshot on every story)
src/components/kibo-ui/nix-editor/nix-editor.stories.tsxsrc/components/kibo-ui/code-block/code-block.stories.tsxsrc/components/preview-indicator/preview-indicator.stories.tsxsrc/components/ui/badge.stories.tsxsrc/components/ui/button.stories.tsxsrc/components/ui/command.stories.tsxsrc/components/ui/dialog.stories.tsxsrc/components/ui/file-badge.stories.tsxsrc/components/ui/hover-click-popover-icon.stories.tsxsrc/components/ui/input-group.stories.tsxsrc/components/ui/popover.stories.tsxsrc/components/ui/scroll-area.stories.tsxsrc/components/ui/select.stories.tsxsrc/components/ui/tabs.stories.tsxsrc/components/ui/tooltip.stories.tsxsrc/components/widget/badges/config-dir-badge.stories.tsxsrc/components/widget/badges/gitignore-badge.stories.tsxsrc/components/widget/evolve-flow.stories.tsxsrc/components/widget/history/timeline-connector.stories.tsxsrc/components/widget/notifications/external-build-detected.stories.tsxsrc/components/widget/overlays/editor-panel.stories.tsxsrc/components/widget/overlays/evolve-progress.stories.tsxsrc/components/widget/overlays/rebuild-overlay-panel.stories.tsxsrc/components/widget/settings/ai-models-tab.stories.tsxsrc/components/widget/settings/developer-tab.stories.tsxsrc/components/widget/summaries/analyze-button.stories.tsxsrc/components/widget/summaries/unsummarized-changes-section.stories.tsxsrc/components/widget/utils.stories.tsxsrc/components/widget/widget.stories.tsxsrc/stories/Button.stories.tssrc/stories/Header.stories.tssrc/stories/Page.stories.tsRust unit tests — by module
ai::log_summarizerai::provider_errorsbootstrap::default_configbootstrap::templatecommands::debugdb::schemae2e_runtimeevolve::ageevolve::chat_memoryevolve::config_dir_contextevolve::edit_nix_fileevolve::ensure_secretevolve::file_opsevolve::gitignoreevolve::search_codeevolve::search_docsevolve::search_packagesevolve::sopsevolve::toolsevolve::utilsfeedbackgit::changes_from_diffgit::execmanaged_edits::homebrew_adoptstate::build_statestate::evolve_statestorage::credential_storestorage::storesummarize::build_promptsummarize::group_existingsummarize::queue_summarizersummarize::token_budgetssystem::nix_ast_listssystem::permissionssystem::scannerupdater_pinutilsOverall: 279 passed, 0 failed, 2 ignored.
Playwright E2E
app shell mountspage has expected titlewdio — Tauri app suites
smoketop-level views › opens history from header— timeout on[data-testid="history-header"]). Re-run: 4/4 passing. Treated as flake.basic-promptsconversationaldiscardmodifyonboardingPeekaboo / Computer Use E2E
System scenario E2E
nix-installSummary