Skip to content

Make AI Coach message length configurable in Admin Advanced settings #267

Description

@SSamDav

Problem

AI Coach chat/refinement and review-note input is currently hardcoded to 1,000 characters in both the client and API. This prevents longer coaching context from being submitted and causes the current use case to fail.

Requested change

Add an Admin → AI Coach → Advanced setting for the maximum user message length.

The configured value should be enforced consistently by the chat UI and API routes (/api/coach/plan and /api/coach/review), rather than relying on the current hardcoded 1,000-character limit.

Acceptance criteria

  • An admin can view and change the maximum AI Coach input length in Advanced settings.
  • The value persists with the existing Coach configuration.
  • The chat UI uses the configured limit for its input maxLength.
  • The server validates or truncates refinement and review-note input with the same configured limit.
  • A safe default remains 1,000 characters for existing instances.
  • Include boundary coverage for the configured limit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions