Skip to content

[FEAT] Configurable response section headers #55

@NeonCharlie-24

Description

@NeonCharlie-24

Objective

Centralize the definition of advisor response section headers (currently "Thought", "What to do", "Next step") into configuration so that section names can be changed or extended without modifying hard coded values across multiple files.

Initial Implementation Requirements

  • add response section header values to config files
  • refactor all places response section headers are hard coded to pull in the values from config

Other Considerations

Refers to this code in voice.py:

line 33-35:

_SECTION_HEADERS = re.compile(
    r"\b(Thought|What to do|Next step)\s*[:.]?\s*", flags=re.IGNORECASE
)

and is also also hard-coded in app.models.persona:COMPACT_MARKDOWN_V1 and app.models.persona:_extract_heading_blocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    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