Skip to content

Public API CreateSessionRequest missing displayName field #739

Description

@jeremyeder

Jira: RHOAIENG-51909

Bug

The public API's CreateSessionRequest DTO (components/public-api/types/dto.go) only accepts three fields:

type CreateSessionRequest struct {
    Task  string `json:"task" binding:"required"`
    Model string `json:"model,omitempty"`
    Repos []Repo `json:"repos,omitempty"`
}

There is no displayName field, so session display names sent by the MCP server (or any API client) are silently dropped. The backend supports display names, but the public API gateway strips them during request transformation.

Expected behavior

The public API should accept a displayName field and forward it to the backend, so sessions can have human-readable names.

Suggested fix

Add DisplayName to CreateSessionRequest in components/public-api/types/dto.go and include it in the backend request transformation in components/public-api/handlers/sessions.go.

/cc @markturansky

🤖 Generated with Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions