Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
e37caa1
feat(artifacts): write agent deliverables to a visible Files folder
M3gA-Mind Sep 30, 2026
9983a7d
test(artifacts): cover the orphaned-partial sweep in the files migration
M3gA-Mind Sep 30, 2026
64e3688
docs(coverage): add the visible Files folder row (6.1.4)
M3gA-Mind Sep 30, 2026
2d2e2e1
fix(artifacts): fail closed when a recorded file cannot be resolved
M3gA-Mind Sep 30, 2026
e5ab986
fix(artifacts): keep artifacts/ readable and events.rs within its lin…
M3gA-Mind Sep 30, 2026
50c872a
Merge remote-tracking branch 'upstream/main' into feat/visible-artifa…
M3gA-Mind Sep 30, 2026
c450494
refactor(tools): register the document producers through for_config
M3gA-Mind Sep 30, 2026
46a0f53
feat(settings): choose the Files folder in Agent OS access
M3gA-Mind Sep 30, 2026
6521040
test(settings): reject a symlinked route into the data folder
M3gA-Mind Sep 30, 2026
445a78d
docs(coverage): list the Files folder setting tests under 6.1.4
M3gA-Mind Sep 30, 2026
2eeebe5
fix(artifacts): trust only core-vouched files folders; protect artifa…
M3gA-Mind Sep 30, 2026
7264cfc
Merge branch 'feat/visible-artifacts-5505' into feat/visible-artifact…
M3gA-Mind Sep 30, 2026
34071f1
feat(settings): keep files from earlier folders trusted after a change
M3gA-Mind Sep 30, 2026
8c810c1
fix(security): treat the account config beside the workspace as internal
M3gA-Mind Sep 30, 2026
d073157
feat(artifacts): show agent files in their folder
M3gA-Mind Sep 30, 2026
03ba85c
docs(coverage): list the Show in folder tests under 6.1.4
M3gA-Mind Sep 30, 2026
f97078f
fix(memory): keep a quoted auth code from signing the user out
YellowSnnowmann Sep 30, 2026
b3410cb
chore(memory): pin tinymemory with the hosted families
YellowSnnowmann Sep 30, 2026
8d1ae1a
feat(memory): advertise hosted memory's families and gate coding sess…
YellowSnnowmann Sep 30, 2026
588ef6e
test(memory): cover hosted memory's families end to end
YellowSnnowmann Sep 30, 2026
ba5e444
docs(memory): describe what hosted memory serves
YellowSnnowmann Sep 30, 2026
7306286
fix(windows): normalize unknown permission states to not_required on …
ajabaabaa Oct 1, 2026
6575b19
style: apply cargo fmt to ops_tests.rs
ajabaabaa Oct 1, 2026
d421434
chore(memory): bump vendor/tinymemory to the phase-2 hosted families
YellowSnnowmann Oct 1, 2026
8150fff
feat(memory): list the hosted engine's new families
YellowSnnowmann Oct 1, 2026
bbd112e
feat(memory): read a rank-only engine's hits as unscored
YellowSnnowmann Oct 1, 2026
006d9fd
fix(memory): note a driver with no summariser or embedder at debug
YellowSnnowmann Oct 1, 2026
16edc8c
feat(memory): label a hosted forest by what each node says
YellowSnnowmann Oct 1, 2026
40661d0
feat(memory): sync local sources into hosted memory from the host
YellowSnnowmann Oct 1, 2026
c1fad42
feat(app): keep local-store controls off an engine without one
YellowSnnowmann Oct 1, 2026
81911fc
test(memory): hosted graph and folder sync end to end
YellowSnnowmann Oct 1, 2026
48e62ae
docs(memory): describe the hosted families added for phase 2
YellowSnnowmann Oct 1, 2026
4857c82
fix: correct raw coverage test file names for e2e tests
senamakel Oct 1, 2026
f683e04
fix(memory-tools): correct test assertion for memory retrieval
senamakel Oct 1, 2026
4aac231
fix(flows): correct test assertion for memory tool output
senamakel Oct 1, 2026
4b6770d
docs(harness): add README and reorganise test modules
senamakel Oct 1, 2026
1bc29c3
fix(skills): correct module re-export to restore public access
senamakel Oct 1, 2026
aac4084
fix(ops): handle model resolution for truncated subagent responses
senamakel Oct 1, 2026
18e1345
docs(skills): add README for the skills module
senamakel Oct 1, 2026
374dea7
chore(tests): update raw coverage test for channels round 26
senamakel Oct 1, 2026
8b821ff
fix(tinyagents): correct tool output middleware test expectations
senamakel Oct 1, 2026
312bf16
fix: correct test support module visibility and import paths
senamakel Oct 1, 2026
feec1d0
test(tinyagents): add orchestration and topology test files
senamakel Oct 1, 2026
f3b5133
fix(tools): correct test module name for default registry tests
senamakel Oct 1, 2026
78c8f60
test(channels): add timeout-notice test and remove stale raw-coverage…
senamakel Oct 1, 2026
59cf64b
test(raw_coverage): add missing closing brace to telegram_loopback test
senamakel Oct 1, 2026
7699b8b
Merge upstream/main into feat/6718-hosted-family-parity
YellowSnnowmann Oct 1, 2026
772cc29
fix(toolpacks): correct test assertion for toolpack validation
senamakel Oct 1, 2026
ee45a7f
chore(memory): bump vendor/tinymemory for hybrid search on a rank-onl…
YellowSnnowmann Oct 1, 2026
f6dc3d8
fix(hosting): correct test assertion for hosting module
senamakel Oct 1, 2026
b9fda47
chore(tests): remove obsolete connectivity raw coverage e2e tests
senamakel Oct 1, 2026
b206f19
fix(tools_tests): correct test for tool call with no arguments
senamakel Oct 1, 2026
dad10ba
chore: remove unused test files for tokenjuice schemas and tools
senamakel Oct 1, 2026
427c695
chore(tests): remove unused tokenjuice types test file
senamakel Oct 1, 2026
be8684a
fix(keyring): correct test assertion for keyring behavior
senamakel Oct 1, 2026
5622a28
test(raw_coverage): remove stale round 26 raw coverage e2e test
senamakel Oct 1, 2026
8ec6aff
test: add missing test files for notification bus and store modules
senamakel Oct 1, 2026
89e5cad
fix(test): update legacy aliases test to reflect current behavior
senamakel Oct 1, 2026
9ab1c1c
fix(test): move test files to correct module location
senamakel Oct 1, 2026
4a8b8db
chore(tests): remove unused raw coverage e2e test files
senamakel Oct 1, 2026
14c566a
fix(test): correct test assertions for client backend
senamakel Oct 1, 2026
f18be18
test(raw_coverage): add e2e test for inference provider raw coverage
senamakel Oct 1, 2026
6c9663e
test(host): add test modules for host components
senamakel Oct 1, 2026
251d76a
fix(tests): update raw coverage test for inference local ops
senamakel Oct 1, 2026
8137d0c
chore: add schemas_tests modules across multiple crates
senamakel Oct 1, 2026
86969f2
chore: remove redundant schema test files
senamakel Oct 1, 2026
98776d5
test: remove redundant serde and default tests from artifact types
senamakel Oct 1, 2026
04056a7
test: add schema validation tests across multiple modules
senamakel Oct 1, 2026
29589df
fix(tests): correct raw coverage e2e test to handle empty coverage data
senamakel Oct 1, 2026
4982b38
test(config): re-enable flaky test by guarding env var access
senamakel Oct 1, 2026
89c6772
fix(test): update live test to match new session import format
senamakel Oct 1, 2026
0fc654e
chore(voice): remove redundant compile-status and serde round-trip tests
senamakel Oct 1, 2026
d318318
fix(test): remove unused imports in orchestration test files
senamakel Oct 1, 2026
17c04c8
chore: remove trailing blank lines from test files
senamakel Oct 1, 2026
3353d7d
chore(tests): remove unused test files
senamakel Oct 1, 2026
a8b9604
test(spawn-subagent): remove redundant e2e test for toolkit argument
senamakel Oct 1, 2026
fc3025c
fix(agent): correct test assertion for subagent host ops
senamakel Oct 1, 2026
3d35f75
test(raw_coverage): remove direct factory edge tests from composio e2e
senamakel Oct 1, 2026
69da169
fix(test): remove unused test files
senamakel Oct 1, 2026
5d4562a
fix: correct test module paths in approval redact and store persisten…
senamakel Oct 1, 2026
2874824
chore: add test module for subagent render functionality
senamakel Oct 1, 2026
1d68b4d
test(raw_coverage): remove obsolete approval redaction and parser tests
senamakel Oct 1, 2026
c121d75
fix(test): correct test assertion for schema validation
senamakel Oct 1, 2026
ef58801
chore: files changed crates/openhuman-core/src/tools/registry/provide…
senamakel Oct 1, 2026
10cdc96
fix(tests): update test assertions for delegate and remember_preferen…
senamakel Oct 1, 2026
3eb22b0
fix(tool-registry): correct approval flow for raw coverage e2e test
senamakel Oct 1, 2026
67b817a
fix(agent): correct test assertion for turn loop termination
senamakel Oct 1, 2026
7d43e42
test(raw_coverage): remove obsolete owned domain raw coverage e2e test
senamakel Oct 1, 2026
7364dd2
fix(channels): restore missing test module for context
senamakel Oct 1, 2026
73c80af
fix(test): correct test module name duplication
senamakel Oct 1, 2026
e67dab8
chore(tests): remove obsolete end-to-end flow lifecycle tests
senamakel Oct 1, 2026
9ae3298
fix(tests): correct Discord and Telegram integration test assertions
senamakel Oct 1, 2026
fda4e0f
test(raw_coverage): remove obsolete cron job id validation test
senamakel Oct 1, 2026
7fb7089
fix(test): update test imports for renamed dispatch and startup modules
senamakel Oct 1, 2026
5bd3b91
fix(memory): correct test for memory operation ordering
senamakel Oct 1, 2026
46cd546
test(schemas): add missing test files for memory schema modules
senamakel Oct 1, 2026
ebe90d3
chore: remove unused test files for memory display name and vault RPC
senamakel Oct 1, 2026
331b110
fix(threads): correct test assertion for conversion edge case
senamakel Oct 1, 2026
ae6905a
fix(web_chat): correct error code classification test assertions
senamakel Oct 1, 2026
e9ea9c2
test(raw_coverage): remove obsolete artifact failure-path test
senamakel Oct 1, 2026
0cb0267
test(raw_coverage): replace two brittle e2e tests with a focused queu…
senamakel Oct 1, 2026
36c60be
test(memory): replace raw-coverage e2e tests with unit tests in sourc…
senamakel Oct 1, 2026
ca4fbc2
docs(tests): correct raw_coverage file count in README
senamakel Oct 1, 2026
6776ee9
fix(tools): remove unused ToolSpec import in test cfg
senamakel Oct 1, 2026
5db1989
chore(ci): remove voice compile status tests from gated allowlist
senamakel Oct 1, 2026
f73ab67
chore(ci): update ignored test baseline for openhuman-core
senamakel Oct 1, 2026
9ceda99
fix(steering): handle missing steering vector in agent host
senamakel Oct 1, 2026
1bea8e7
test(scope): add integration tests for core agent and channel modules
senamakel Oct 1, 2026
8438d91
chore: reorder imports and reformat test assertions across multiple t…
senamakel Oct 1, 2026
d8f395c
test: add missing test files for agent learning, orchestration, memor…
senamakel Oct 1, 2026
d49d160
test: add raw coverage e2e tests for composio, connectivity, inferenc…
senamakel Oct 1, 2026
9d9822e
chore(tests): remove unused imports from raw coverage e2e tests
senamakel Oct 1, 2026
354b00d
test: use public API in reflection persistence test
senamakel Oct 1, 2026
7bda22b
chore(ci): update ignored test baseline for openhuman-core
senamakel Oct 1, 2026
ba8d5d9
chore(ci): update ignored test baseline for openhuman-core
senamakel Oct 1, 2026
636bdf9
chore: files changed Cargo.lock,crates/openhuman-app/Cargo.lock,scrip…
senamakel Oct 1, 2026
9975c0d
Merge branch 'pr-6849' into try-6849
senamakel Oct 1, 2026
78525ff
Merge pull request #6849 from senamakel/test-cleanup-tc-unit-b
senamakel Oct 1, 2026
be53eff
Merge branch 'pr-6850' into try-6850
senamakel Oct 1, 2026
e0ba19c
fix(memory): keep what a failed sync wrote in its history row
YellowSnnowmann Oct 1, 2026
501597f
fix(memory): carry a host sync past what the sink already accepted
YellowSnnowmann Oct 1, 2026
aaafe99
Merge upstream/main into test-cleanup-tc-raw; repin vendor to merged …
senamakel Oct 1, 2026
941c09d
Merge pull request #6850 from senamakel/test-cleanup-tc-raw
senamakel Oct 1, 2026
0399844
Merge upstream/main into test-cleanup-tc-unit-a; repin vendor to merg…
senamakel Oct 1, 2026
a2241d8
Merge pull request #6851 from senamakel/test-cleanup-tc-unit-a
senamakel Oct 1, 2026
bcd5513
chore(memory): re-pin the tinymemory module to v1.20.0
YellowSnnowmann Oct 1, 2026
574a332
Merge pull request #6847 from ajabaabaa/fix/windows-desktop-access
senamakel Oct 1, 2026
b65f99e
Merge pull request #6843 from YellowSnnowmann/feat/6718-hosted-family…
senamakel Oct 1, 2026
e241e15
Merge upstream/main into feat/visible-artifacts-5505; refresh app loc…
senamakel Oct 1, 2026
0fc1b3b
Merge pull request #6820 from M3gA-Mind/feat/visible-artifacts-5505
senamakel Oct 1, 2026
958716e
Merge upstream/main into feat/visible-artifacts-5505-settings
senamakel Oct 1, 2026
2774d36
Merge remote-tracking branch 'upstream/main' into try-6825
senamakel Oct 1, 2026
ec41096
Merge pull request #6825 from M3gA-Mind/feat/visible-artifacts-5505-s…
senamakel Oct 1, 2026
a4bade5
Merge pull request #6833 from M3gA-Mind/feat/visible-artifacts-5505-r…
senamakel Oct 1, 2026
b376f9a
Merge upstream/main into fix-app-starship-battery; repin vendor to me…
senamakel Oct 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ jobs:
# and leave a stale digest that only fails after the download. Both values
# are the ubuntu-22.04-x86_64 row of `crates/openhuman-core/src/modules/registry.rs`,
# which is the authoritative pin — copy them from there, never recompute.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
Expand Down Expand Up @@ -333,8 +333,8 @@ jobs:
# tinybus validates every directory ancestor. GitHub mounts the
# checkout as the host runner uid while this container runs as root,
# so keep native fixtures in a root-owned, ephemeral tree.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ jobs:
# and leave a stale digest that only fails after the download. Both values
# are the ubuntu-22.04-x86_64 row of `crates/openhuman-core/src/modules/registry.rs`,
# which is the authoritative pin — copy them from there, never recompute.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
# tinybus validates every directory ancestor. GitHub mounts the
# checkout as the host runner uid while this container runs as root,
# so keep native fixtures in a root-owned, ephemeral tree.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ jobs:
# and leave a stale digest that only fails after the download. Both values
# are the ubuntu-22.04-x86_64 row of `crates/openhuman-core/src/modules/registry.rs`,
# which is the authoritative pin — copy them from there, never recompute.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"
Expand Down Expand Up @@ -373,8 +373,8 @@ jobs:
# and leave a stale digest that only fails after the download. Both values
# are the ubuntu-22.04-x86_64 row of `crates/openhuman-core/src/modules/registry.rs`,
# which is the authoritative pin — copy them from there, never recompute.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
connectors_dir="$module_root/tinyconnectors"
Expand Down Expand Up @@ -487,8 +487,8 @@ jobs:
# fixture outside the checkout owned by the host runner.
# Version and digest are the ubuntu-22.04-x86_64 registry pin; do
# not derive a replacement checksum from a local build.
memory_version="1.17.0"
memory_sha256="0b0305bddbee09b3fe9965395fe9d006526f0c0c2ffd777d6e78747b2cfcff35"
memory_version="1.20.0"
memory_sha256="d3c2485a3fdd657b40ba65ab266950bd3f3f060695a9bba3e20b2d83e343fb61"
juice_version="0.4.0"
juice_sha256="c404fa25c54c6e3888fdbdd971be9055f1e46e947c854f1556069a4e0d0390da"
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 32 additions & 18 deletions app/src/components/chat/ChatFilesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type ArtifactErrorCode,
deleteArtifact,
downloadArtifact,
revealArtifactInFileManager,
revealArtifact,
} from '../../services/artifactDownloadService';
import {
type ArtifactSnapshot,
Expand All @@ -23,7 +23,8 @@ import { extensionFor } from './artifactExtension';
* Mounted by {@link ChatFilesChip}. Renders one row per artifact with:
* - kind icon + title + human-readable size
* - Download (Tauri `download_artifact_to_downloads`)
* - Show-in-folder (only after a successful download in this session)
* - Show in folder: opens the file manager at the artifact's real file in
* the visible files folder (#5505)
* - Delete with a confirm-step (optimistic slice removal + RPC call,
* re-upsert on failure with a toast).
*
Expand Down Expand Up @@ -64,6 +65,8 @@ function localizeErrorCode(
return t('chat.files.error.download_failed');
case 'DELETE_FAILED':
return t('chat.files.error.delete_failed');
case 'REVEAL_FAILED':
return t('chat.files.error.reveal_failed');
case 'CANCELLED':
// User-initiated dialog dismissal — not a real error. Callers treat
// it as a no-op; surface nothing (fall back to raw text if passed).
Expand Down Expand Up @@ -155,7 +158,6 @@ function KindIcon({ kind }: { kind: ArtifactSnapshot['kind'] }) {

interface RowDownloadState {
state: 'idle' | 'downloading' | 'done' | 'error';
path?: string;
/** Already-localized error headline ready for direct render. */
error?: string;
}
Expand All @@ -167,6 +169,8 @@ export default function ChatFilesPanel({ threadId, artifacts, onClose }: ChatFil
const [confirmDeleteId, setConfirmDeleteId] = useState<string | null>(null);
const [downloadState, setDownloadState] = useState<Record<string, RowDownloadState>>({});
const [deleteError, setDeleteError] = useState<string | null>(null);
// Per-row "Show in folder" failure, already localized.
const [revealError, setRevealError] = useState<Record<string, string>>({});

// Esc closes. Use keydown not keyup so a panel that opened via Enter
// doesn't immediately re-trigger its trigger on the same release.
Expand Down Expand Up @@ -206,7 +210,7 @@ export default function ChatFilesPanel({ threadId, artifacts, onClose }: ChatFil
setDownloadState(prev => ({
...prev,
[artifact.artifactId]: outcome.ok
? { state: 'done', path: outcome.path }
? { state: 'done' }
: {
state: 'error',
// Prefer the localized headline; only fall back to the raw
Expand All @@ -217,9 +221,14 @@ export default function ChatFilesPanel({ threadId, artifacts, onClose }: ChatFil
}));
};

const handleReveal = async (path: string) => {
if (path) {
await revealArtifactInFileManager(path);
const handleReveal = async (artifact: ArtifactSnapshot) => {
setRevealError(({ [artifact.artifactId]: _cleared, ...rest }) => rest);
const outcome = await revealArtifact(artifact.artifactId);
if (!outcome.ok) {
setRevealError(prev => ({
...prev,
[artifact.artifactId]: localizeErrorCode(t, outcome.code, outcome.error),
}));
}
};

Expand Down Expand Up @@ -341,17 +350,15 @@ export default function ChatFilesPanel({ threadId, artifacts, onClose }: ChatFil
? t('chat.artifact.downloading')
: t('chat.artifact.download')}
</Button>
{row.state === 'done' && row.path && (
<Button
variant="tertiary"
size="xs"
onClick={() => void handleReveal(row.path!)}
analyticsId={`chat-files-reveal-${artifact.kind}`}
data-testid={`chat-files-reveal-${artifact.artifactId}`}
className="text-[11px] underline text-sage-600">
{t('chat.artifact.reveal')}
</Button>
)}
<Button
variant="tertiary"
size="xs"
onClick={() => void handleReveal(artifact)}
analyticsId={`chat-files-reveal-${artifact.kind}`}
data-testid={`chat-files-reveal-${artifact.artifactId}`}
className="text-[11px] underline text-sage-600">
{t('chat.artifact.reveal')}
</Button>
<Button
iconOnly
variant="tertiary"
Expand All @@ -377,6 +384,13 @@ export default function ChatFilesPanel({ threadId, artifacts, onClose }: ChatFil
</Button>
</div>
)}
{revealError[artifact.artifactId] && (
<p
className="text-[11px] text-coral-600 dark:text-coral-400 mt-0.5 wrap-break-word"
data-testid={`chat-files-reveal-error-${artifact.artifactId}`}>
{revealError[artifact.artifactId]}
</p>
)}
{row.state === 'error' && row.error && (
<p className="text-[11px] text-coral-600 dark:text-coral-400 mt-0.5 wrap-break-word">
{t('chat.artifact.download_failed').replace('{reason}', row.error)}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/chat/__tests__/ChatFilesChip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ vi.mock('../../../services/artifactDownloadService', () => ({
listArtifactsForThread: vi.fn(),
downloadArtifact: vi.fn(),
deleteArtifact: vi.fn(),
revealArtifactInFileManager: vi.fn(),
revealArtifact: vi.fn(),
}));

const THREAD = 't-chip-1';
Expand Down
53 changes: 37 additions & 16 deletions app/src/components/chat/__tests__/ChatFilesPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import {
deleteArtifact,
downloadArtifact,
revealArtifactInFileManager,
revealArtifact,
} from '../../../services/artifactDownloadService';
import chatRuntimeReducer, {
type ArtifactSnapshot,
Expand All @@ -17,7 +17,7 @@ import ChatFilesPanel from '../ChatFilesPanel';
vi.mock('../../../services/artifactDownloadService', () => ({
downloadArtifact: vi.fn(),
deleteArtifact: vi.fn(),
revealArtifactInFileManager: vi.fn(),
revealArtifact: vi.fn(),
}));

const THREAD = 't-panel-1';
Expand Down Expand Up @@ -89,12 +89,7 @@ describe('ChatFilesPanel', () => {
expect(screen.getByTestId('chat-files-delete-art-2')).toBeInTheDocument();
});

it('on Download click → calls downloadArtifact + surfaces a Show-in-folder button on success', async () => {
const a = readyArtifact('art-1', 'Climate Deck');
vi.mocked(downloadArtifact).mockResolvedValueOnce({
ok: true,
path: '/Users/me/Downloads/Climate Deck.pptx',
});
const renderOne = (a: ArtifactSnapshot) => {
const store = mkStore([
{
threadId: THREAD,
Expand All @@ -110,18 +105,44 @@ describe('ChatFilesPanel', () => {
<ChatFilesPanel threadId={THREAD} artifacts={[a]} onClose={() => {}} />
</Provider>
);
fireEvent.click(screen.getByTestId('chat-files-download-art-1'));
await waitFor(() => {
expect(screen.getByTestId('chat-files-reveal-art-1')).toBeInTheDocument();
};

it('on Download click → calls downloadArtifact', async () => {
vi.mocked(downloadArtifact).mockResolvedValueOnce({
ok: true,
path: '/Users/me/Downloads/Climate Deck.pptx',
});
expect(downloadArtifact).toHaveBeenCalledWith('art-1', 'Climate Deck', 'pptx');
renderOne(readyArtifact('art-1', 'Climate Deck'));
fireEvent.click(screen.getByTestId('chat-files-download-art-1'));
await waitFor(() =>
expect(downloadArtifact).toHaveBeenCalledWith('art-1', 'Climate Deck', 'pptx')
);
});

it('offers Show in folder on every ready file, without downloading first (#5505)', async () => {
vi.mocked(revealArtifact).mockResolvedValueOnce({ ok: true });
renderOne(readyArtifact('art-1', 'Climate Deck'));

fireEvent.click(screen.getByTestId('chat-files-reveal-art-1'));
await waitFor(() => {
expect(revealArtifactInFileManager).toHaveBeenCalledWith(
'/Users/me/Downloads/Climate Deck.pptx'
);

await waitFor(() => expect(revealArtifact).toHaveBeenCalledWith('art-1'));
expect(downloadArtifact).not.toHaveBeenCalled();
expect(screen.queryByTestId('chat-files-reveal-error-art-1')).not.toBeInTheDocument();
});

it('says so when the file cannot be shown', async () => {
vi.mocked(revealArtifact).mockResolvedValueOnce({
ok: false,
code: 'REVEAL_FAILED',
error: 'raw detail',
});
renderOne(readyArtifact('art-1', 'Climate Deck'));

fireEvent.click(screen.getByTestId('chat-files-reveal-art-1'));

expect(await screen.findByTestId('chat-files-reveal-error-art-1')).toHaveTextContent(
'Couldn’t show the file. It may have been moved or deleted outside OpenHuman.'
);
});

it('Delete → Cancel keeps the artifact and does NOT call the RPC', async () => {
Expand Down
24 changes: 24 additions & 0 deletions app/src/components/desktop/DesktopConnectionPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,28 @@ describe('Desktop connection', () => {
await screen.findByText('Could not load pending desktop approvals. Refresh to try again.')
).toBeInTheDocument();
});

it('treats not_required accessibility as ready on Windows and suppresses the settings button', async () => {
const windowsReady: DesktopStatus = {
...enabled,
platform: 'windows',
accessibility: 'not_required',
screen_recording: 'not_required',
};
vi.mocked(callCoreRpc).mockImplementation(async ({ method }) => {
if (method === 'openhuman.desktop_status') return windowsReady as never;
if (method === 'openhuman.desktop_pending') return [] as never;
if (method === 'openhuman.desktop_probe') return { ok: true, app_count: 1 } as never;
throw new Error(`Unexpected method: ${method}`);
});
renderWithProviders(<DesktopConnectionPage />);

// "Not required" is a success state — the status badge should report connected.
expect(await screen.findByText('Connected')).toBeInTheDocument();
// No "Open settings" button should appear for permissions that are not_required.
expect(screen.queryByRole('button', { name: 'Open settings' })).not.toBeInTheDocument();
// The probe should succeed.
fireEvent.click(screen.getByRole('button', { name: 'Test desktop access' }));
expect(await screen.findByText('Desktop access works.')).toBeInTheDocument();
});
});
8 changes: 4 additions & 4 deletions app/src/components/desktop/DesktopConnectionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ function permissionSettingsUrl(kind: PermissionKind, platform: string): string |
if (platform === 'macos') {
return `x-apple.systempreferences:com.apple.preference.security?Privacy_${kind === 'accessibility' ? 'Accessibility' : 'ScreenCapture'}`;
}
if (platform === 'windows') {
return 'ms-settings:privacy';
}
// Windows has no per-app accessibility or screen-recording permission toggle
// analogous to macOS TCC. Opening the generic Privacy settings page sends
// the user to a dead end, so return null to suppress the button.
return null;
}

Expand Down Expand Up @@ -249,7 +249,7 @@ export default function DesktopConnectionPage({
!!status &&
status.enabled &&
status.module_state === 'ready' &&
status.accessibility === 'granted' &&
(status.accessibility === 'granted' || status.accessibility === 'not_required') &&
status.jev_ready;
const statusBadge = status?.supported ? (
<Badge
Expand Down
34 changes: 34 additions & 0 deletions app/src/components/intelligence/MemoryControls.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ vi.mock('../../utils/tauriCommands', () => ({
memoryTreeResetTree: vi.fn().mockResolvedValue(undefined),
memoryTreeWipeAll: vi.fn().mockResolvedValue(undefined),
}));
// The bound engine's families; `null` is "not known yet", which fails open.
const engine = vi.hoisted(() => ({ capabilities: null as ReadonlySet<string> | null }));
vi.mock('./useMemoryEngineCapabilities', () => ({
useMemoryEngine: () => ({ capabilities: engine.capabilities }),
}));

const noop = () => {};

Expand Down Expand Up @@ -66,3 +71,32 @@ describe('<MemoryControls /> refresh feedback', () => {
expect(onRefresh).toHaveBeenCalledTimes(1);
});
});

describe('<MemoryControls /> per engine', () => {
afterEach(() => {
engine.capabilities = null;
});

it('offers the local store controls for an engine that keeps one', () => {
engine.capabilities = new Set(['tree', 'chunks']);
render(<MemoryControls mode="tree" onModeChange={noop} onRefresh={noop} />);
expect(screen.getByTestId('memory-wipe-all')).toBeInTheDocument();
expect(screen.getByTestId('memory-reset-tree')).toBeInTheDocument();
expect(screen.getByTestId('memory-build-trees')).toBeInTheDocument();
expect(screen.getByTestId('memory-graph-refresh')).toBeInTheDocument();
});

it('offers only Refresh for hosted memory, which keeps no local store', () => {
engine.capabilities = new Set(['tree', 'retrieval', 'sources']);
render(<MemoryControls mode="tree" onModeChange={noop} onRefresh={noop} />);
expect(screen.queryByTestId('memory-wipe-all')).toBeNull();
expect(screen.queryByTestId('memory-reset-tree')).toBeNull();
expect(screen.queryByTestId('memory-build-trees')).toBeNull();
expect(screen.getByTestId('memory-graph-refresh')).toBeInTheDocument();
});

it('shows every control while the engine is not known', () => {
render(<MemoryControls mode="tree" onModeChange={noop} onRefresh={noop} />);
expect(screen.getByTestId('memory-wipe-all')).toBeInTheDocument();
});
});
Loading
Loading