xworkmate-app/test/runtime
Haitao Pan ef849d7317 fix(prompt): simplify gateway workspace context to avoid conflicting paths (S5)
Every gateway turn's prompt prefix injected three near-duplicate absolute paths:
currentTaskWorkspace + localWorkspace + remoteWorkspaceHint. localWorkspace is the
App's LOCAL thread dir (~/.xworkmate/threads/...) which the gateway agent cannot
access, and remoteWorkspaceHint duplicates currentTaskWorkspace. The conflicting
paths leave the agent unsure where to work and can block conversation continuation.

For gateway turns the prompt now carries only currentTaskWorkspace (the plugin owns
the artifact scope); localWorkspace is kept only for non-gateway (local agent runs
there); remoteWorkspaceHint is dropped when equal to currentTaskWorkspace. sessionKey
is kept (short, not a path). UI is unaffected (chat bubble shows the raw user message;
the prompt-debug parser only special-cases Execution context / Preferred skills /
Attached files). Tests updated; assistant_execution_target_test green (74).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 12:15:27 +08:00
..
acp_endpoint_paths_test.dart fix: sync bridge artifacts and route openclaw tasks 2026-05-03 12:14:35 +08:00
app_controller_thread_workspace_binding_test.dart test: align gateway recovery expectations 2026-06-26 19:52:27 +08:00
assistant_archived_tasks_test.dart fix: require yes before deleting archived tasks 2026-05-20 16:38:48 +08:00
assistant_connection_state_test.dart fix(settings): update account panel and assistant connection state 2026-06-17 21:01:56 +08:00
assistant_execution_target_test.dart fix(prompt): simplify gateway workspace context to avoid conflicting paths (S5) 2026-06-27 12:15:27 +08:00
assistant_model_display_test.dart fix: remove polluted test task sessions 2026-05-19 08:21:45 +08:00
bridge_runtime_cleanup_test.dart fix: prioritize managed bridge sync state 2026-06-16 06:20:13 +08:00
desktop_thread_artifact_service_test.dart fix(openclaw): keep artifact runs session scoped 2026-06-02 00:48:56 +08:00
file_store_support_test.dart fix: stabilize iOS login storage and mobile settings 2026-05-25 09:43:57 +08:00
gateway_acp_client_auth_test.dart test: align gateway recovery expectations 2026-06-26 19:52:27 +08:00
gateway_profile_cleanup_test.dart chore: remove stale gateway settings and app ffi paths 2026-05-13 16:45:54 +08:00
gateway_runtime_bridge_skills_test.dart test: keep layered flutter tests aligned with repo 2026-06-26 19:39:14 +08:00
go_runtime_dispatch_desktop_client_test.dart fix: route gateway execution through managed bridge 2026-05-02 12:10:08 +08:00
runtime_controllers_settings_account_test.dart fix: preserve primary bridge auth token 2026-06-18 10:01:19 +08:00
ui_feature_manifest_desktop_surface_test.dart chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
ui_feature_manifest_mobile_surface_test.dart Clean C/S surfaces down to assistant and settings 2026-04-13 12:14:12 +08:00