xworkmate-app/lib
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
..
app fix(prompt): simplify gateway workspace context to avoid conflicting paths (S5) 2026-06-27 12:15:27 +08:00
features chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
i18n Refine sidebar language toggle layout 2026-03-11 15:25:33 +08:00
models chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
runtime fix: preserve primary bridge auth token 2026-06-18 10:01:19 +08:00
theme refactor: unify app theme surfaces by scene 2026-03-30 15:31:01 +08:00
widgets chore: remove stale Flutter code 2026-06-12 14:52:23 +08:00
main.dart feat: add ui feature flag release docs pipeline 2026-03-22 10:49:13 +08:00