Skip to content

Add configurable terminal port support and update translations#28

Merged
techartdev merged 6 commits intomainfrom
tty-configurable-port
Feb 5, 2026
Merged

Add configurable terminal port support and update translations#28
techartdev merged 6 commits intomainfrom
tty-configurable-port

Conversation

@techartdev
Copy link
Copy Markdown
Owner

  • Updated nginx configuration to use a placeholder for terminal port.
  • Modified run.sh to read terminal port from options file and start ttyd on the specified port.
  • Added terminal port configuration option in English, Bulgarian, German, and Spanish translations.

- Updated nginx configuration to use a placeholder for terminal port.
- Modified run.sh to read terminal port from options file and start ttyd on the specified port.
- Added terminal port configuration option in English, Bulgarian, German, and Spanish translations.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a configurable terminal port option to allow users to customize the port used by the ttyd web terminal service, addressing potential port conflicts with other services. The default port remains 7681.

Changes:

  • Added terminal_port configuration option with translations in English, Bulgarian, German, and Spanish
  • Updated nginx configuration template to use a placeholder for the terminal port
  • Modified run.sh to read the terminal port from the options file and dynamically configure ttyd

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
openclaw_assistant/translations/en.yaml Added English translation for terminal_port configuration option
openclaw_assistant/translations/es.yaml Added Spanish translation for terminal_port configuration option
openclaw_assistant/translations/de.yaml Added German translation for terminal_port configuration option
openclaw_assistant/translations/bg.yaml Added Bulgarian translation for terminal_port configuration option
openclaw_assistant/nginx.conf.tpl Replaced hardcoded port 7681 with TERMINAL_PORT placeholder
openclaw_assistant/run.sh Added TERMINAL_PORT variable extraction, debug logging, process cleanup, and Python script integration for dynamic port configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openclaw_assistant/translations/en.yaml
Comment thread openclaw_assistant/run.sh Outdated
Comment thread openclaw_assistant/run.sh Outdated
Comment thread openclaw_assistant/run.sh
Comment thread openclaw_assistant/translations/en.yaml
Comment thread openclaw_assistant/run.sh
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openclaw_assistant/run.sh Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openclaw_assistant/run.sh
rm -f "$TTYD_PID_FILE"
fi

if [ "$ENABLE_TERMINAL" = "true" ] || [ "$ENABLE_TERMINAL" = "1" ]; then
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

The condition checks for both "true" (string) and "1" (string) values for ENABLE_TERMINAL. However, the jq command on line 23 uses '.enable_terminal // true' which will return a boolean true/false, not the string "1". The check for "1" is unnecessary unless there's a specific use case where the JSON could contain the number 1 instead of a boolean. Consider removing the "|| [ "$ENABLE_TERMINAL" = "1" ]" part for clarity, or add a comment explaining why it's needed.

Suggested change
if [ "$ENABLE_TERMINAL" = "true" ] || [ "$ENABLE_TERMINAL" = "1" ]; then
if [ "$ENABLE_TERMINAL" = "true" ]; then

Copilot uses AI. Check for mistakes.
Comment thread openclaw_assistant/run.sh
@techartdev techartdev merged commit 6b74131 into main Feb 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants