Skip to content

Commit

Permalink
Fixed agent id not being set in terminal (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cx01N authored Sep 22, 2024
1 parent 93afc3e commit ef7d5e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added request for job/task list from agents
- Added Route4Me to sponsorship section

### Fixed
- Fixed agent id not being automatically set in terminal

## [2.8.1] - 2024-05-05

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions src/components/agents/AgentTerminal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,13 @@ export default {
return;
}
if (!this.moduleOptions.Agent || !this.moduleOptions.Agent.value) {
this.moduleOptions.Agent = {
value: this.agent.session_id,
required: true,
};
}
const missingOptions = Object.entries(this.moduleOptions)
.filter(([_, option]) => option.required && !option.value)
.map(([optionName, _]) => optionName);
Expand Down

0 comments on commit ef7d5e1

Please sign in to comment.