Skip to content

Document the multiline format of a string config entry - #505

Merged
marcelveldt merged 1 commit into
mainfrom
document-multiline-format
Dec 2, 2026
Merged

marcelveldt merged 1 commit into
mainfrom
document-multiline-format

Conversation

@marcelveldt

Copy link
Copy Markdown
Member

What does this implement/fix?

The server now marks a text setting with format="multiline" when it should be shown as a text area, for the description a user writes in the troubleshooter (server#8428). This documents that value next to the existing pairing code format.

  • Comment on ConfigEntry.format describes multiline for STRING entries

Related issue (if applicable):

  • related issue

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — documentation
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Checklist

  • The code change is tested and works locally. (comment only)
  • pre-commit run --all-files passes.
  • pytest passes, and tests have been added/updated under tests/ where applicable. (no code change)
  • Any consumer of a changed model is updated, and the companion PR in music-assistant/server is linked. (Troubleshoot with the help of AI server#8428)
  • I have read and complied with the project's AI Policy for any AI-assisted contributions.

@github-actions github-actions Bot added the documentation Documentation only changes label Dec 2, 2026
@marcelveldt

Copy link
Copy Markdown
Member Author

@Bot-MArley review

@Bot-MArley Bot-MArley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

This comment was written by Claude and posted by Bot-MArley on behalf of the Music Assistant maintainers.

Thanks @marcelveldt! This documents the multiline value of ConfigEntry.format for STRING entries, right next to the existing pairing code notes. The comment matches how the companion server PR (music-assistant/server#8428) uses it: the troubleshooter's description entry is a STRING with format="multiline". Nothing in the models validates format for STRING entries, so no code change is needed here.

Looks good, no requested changes. Once it's out of draft, it's ready for a maintainer to merge together with the server PR.

@marcelveldt
marcelveldt marked this pull request as ready for review December 2, 2026 15:32
@marcelveldt

Copy link
Copy Markdown
Member Author

@Bot-MArley approve

@marcelveldt
marcelveldt merged commit 5d1ebb9 into main Dec 2, 2026
11 checks passed
@Bot-MArley

Copy link
Copy Markdown
Collaborator

Note

This comment was posted by Bot-MArley on behalf of the Music Assistant maintainers.

@marcelveldt approve only works on your own server PRs into dev. On someone else's PR, approve it yourself.

@marcelveldt
marcelveldt deleted the document-multiline-format branch December 2, 2026 15:33
gegere pushed a commit to gegere/server that referenced this pull request Dec 2, 2026
# What does this implement/fix?

When an AI engine is connected, the troubleshooter offers "Troubleshoot
with the help of AI" for each player and music source, and on "Something
else". You describe the problem in your own words, and the step tells
you which AI engine it goes to. The answer explains what is likely going
on and can suggest settings, which you check before anything is saved,
or you report the problem with your description and the answer attached.

## Changes

- New "Troubleshoot with the help of AI" card on the problem step of
players and providers, and on "Something else", only when a default AI
engine is set up
- One step to describe the problem, which names the AI engine it goes to
- The AI only gets the switches, numbers and fixed choices of that
player or provider, its status and recent errors, never free text,
passwords, or the names of players and accounts
- Suggested settings are only offered when they are real settings with a
value they take, and you confirm them in the usual change step
- The report gets your own description and the AI analysis, for the
`What happened?` and `AI analysis` fields of the bug form
- New `get_recent_exceptions` on the diagnostics controller, sanitized

## Types of changes

- [ ] Bugfix (non-breaking change which fixes an issue) — `bugfix`
- [ ] New feature (non-breaking change which adds functionality) —
`new-feature`
- [x] Enhancement to an existing feature — `enhancement`
- [ ] New music/player/metadata/plugin provider — `new-provider`
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected) — `breaking-change`
- [ ] Refactor (no behaviour change) — `refactor`
- [ ] Documentation only — `documentation`
- [ ] Maintenance / chore — `maintenance`
- [ ] CI / workflow change — `ci`
- [ ] Dependencies bump — `dependencies`

## Checklist

- [x] The code change is tested and works locally.
- [x] `pre-commit run --all-files` passes.
- [x] `pytest` passes, and tests have been added/updated under `tests/`
where applicable.
- [x] For changes to shared models, the companion PR in
`music-assistant/models` is linked.
(music-assistant/models#505)
- [x] For changes affecting the UI, the companion PR in
`music-assistant/frontend` is linked.
(music-assistant/frontend#3397)
- [x] I have read and complied with the project's [AI
Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md)
for any AI-assisted contributions.
- [ ] I have [raised a PR against the documentation
repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md)
targeting the main or beta branch as appropriate. (follows, with the
troubleshooter docs)
n-gras pushed a commit to n-gras/server that referenced this pull request Dec 2, 2026
Update music-assistant-models to version
[1.1.257](https://github.com/music-assistant/models/releases/tag/1.1.257)


## 🚀 Features and enhancements

- Tell clients whether crossfade can be switched on for a queue (by
@marcelveldt in
[music-assistant#506](music-assistant/models#506))

## 🧰 Maintenance and dependency bumps

- Document the multiline format of a string config entry (by
@marcelveldt in
[music-assistant#505](music-assistant/models#505))
- Let config actions mark themselves as destructive (by @marcelveldt in
[music-assistant#504](music-assistant/models#504))


## 🙇 Contributors

@marcelveldt

Co-authored-by: musicassistant-bot[bot] <304008617+musicassistant-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants