Commit 37b6ad5
committed
fix(ClaudeAdapter): strip surrounding quotes from scalar frontmatter values
ClaudeAdapter.parseFrontmatter stripped quotes only from array items, never
from scalar values, so a quoted scalar like `name: "SubAgent"` parsed to the
literal `"SubAgent"` (embedded quotes). The adapter's own
generateClaudeAgentMarkdown emits every scalar quoted, so a subagent
fromOAC -> toOAC round-trip mangled name/description/model. The sibling
CursorAdapter.parseFrontmatter already does value.replace(/^["']|["']$/g, ""),
proving the intended behavior. Apply the same scalar quote-strip. Add a
regression test.1 parent 37ca233 commit 37b6ad5
2 files changed
Lines changed: 23 additions & 0 deletions
File tree
- packages/compatibility-layer
- src/adapters
- tests/unit/adapters
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
238 | 256 | | |
239 | 257 | | |
240 | 258 | | |
| |||
0 commit comments