Commit ec490ca
committed
browser_execute: resolve harness path in tool description
The description references SKILL.md and helpers.py by source-tree path,
which only resolves correctly in dev mode. In compiled binaries the
harness extracts to <dataDir>/harness/ and those source paths don't
exist on disk, so the agent's first read fails.
Template the path: replace packages/bcode-browser/harness/ with
{{HARNESS_DIR}} in the description, and substitute the resolved path
(dev or compiled) in the opencode adapter at make-time. Eager harness
extraction (already in the data-dir relocation commit) guarantees the
files exist before the agent reads the description.1 parent a22a4c5 commit ec490ca
3 files changed
Lines changed: 7 additions & 4 deletions
File tree
- packages
- bcode-browser/src
- opencode/src/tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
0 commit comments