-
Notifications
You must be signed in to change notification settings - Fork 25
Add architecture field in agent modal #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -149,7 +149,9 @@ function copyCommandToClipboard(command) { | |||||||||||||||||||||
| label.label {{ field.name }} | ||||||||||||||||||||||
| .field-body | ||||||||||||||||||||||
| .field.has-addons | ||||||||||||||||||||||
| .control.is-expanded | ||||||||||||||||||||||
| .control.is-expanded(v-if="field.name === 'agents.architecture'") | ||||||||||||||||||||||
| input.input(type="text" v-tooltip="'e.g. 386, amd64, arm64, wasm, etc.'" v-model="field.value") | ||||||||||||||||||||||
| .control.is-expanded(v-else) | ||||||||||||||||||||||
| input.input(type="text" v-model="field.value") | ||||||||||||||||||||||
|
Comment on lines
+152
to
155
|
||||||||||||||||||||||
| .control.is-expanded(v-if="field.name === 'agents.architecture'") | |
| input.input(type="text" v-tooltip="'e.g. 386, amd64, arm64, wasm, etc.'" v-model="field.value") | |
| .control.is-expanded(v-else) | |
| input.input(type="text" v-model="field.value") | |
| .control.is-expanded | |
| input.input( | |
| type="text" | |
| v-model="field.value" | |
| v-tooltip="field.name === 'agents.architecture' ? 'e.g. 386, amd64, arm64, wasm, etc.' : null" | |
| ) |
Copilot
AI
Mar 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Reset to default" assigns agentFieldConfig[field.name] directly; for fields that don't have a configured default (e.g., new placeholders like agents.architecture), this will set the model to undefined even though the initial value is "" when no default exists. Consider falling back to an empty string (or checking hasOwnProperty) so reset always returns to the same effective default shown when the field is first rendered.
| a.button.has-tooltip-arrow(title="Reset to default" @click="field.value = agentFieldConfig[field.name]") | |
| a.button.has-tooltip-arrow(title="Reset to default" @click="field.value = Object.prototype.hasOwnProperty.call(agentFieldConfig, field.name) ? agentFieldConfig[field.name] : ''") |
Uh oh!
There was an error while loading. Please reload this page.