Skip to content

Phase 3: Personality types & config schema #20336

@robinmordasiewicz

Description

@robinmordasiewicz

Parent Epic

Closes part of #20334

Problem

No typed schema exists for personality definitions in config.

Acceptance Criteria

  • `Personality.Info` and `Personality.Spec` zod schemas defined (string + dict format)
  • `Config.Info` extended with optional `personality` field
  • Schema validates both string and structured (description, system_prompt, tone, style) formats
  • Tests in `test/personality/personality.test.ts` pass (TDD)

Reference

Files

  • `packages/opencode/src/personality/index.ts` (new)
  • `packages/opencode/src/config/config.ts`
  • `packages/opencode/test/personality/personality.test.ts` (new, TDD first)

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)needs:complianceThis means the issue will auto-close after 2 hours.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions