Skip to content

Conversation

@Lujeni
Copy link

@Lujeni Lujeni commented Jan 12, 2026

What was changed

Added ui_port parameter to WorkflowEnvironment.start_local() method to allow users to customize the UI port when starting a local Temporal dev server environment.

Why?

This feature allows users to specify a custom UI port when starting the dev server

Checklist

  1. Closes [Feature Request] Allow customization of dev server UI port #748

  2. How was this tested:

    • Test verifies that the server starts successfully with the configured UI port
  3. Any docs updates needed?

    • Parameter is already documented in the docstring of start_local() method
    • No additional README or external docs changes required as this is an internal testing feature

@Lujeni Lujeni requested a review from a team as a code owner January 12, 2026 22:21
ui_port_str = str(dev_server_ui_port)
extra_args_list = list(dev_server_extra_args)
if "--ui-port" not in extra_args_list:
# Prepend to extra_args so user-provided args can override if needed
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is odd. You explicitly only even append the argument if it won't be overridden. I would either remove the comment or allow the argument to always be appended

Copy link
Member

@cretz cretz Jan 16, 2026

Choose a reason for hiding this comment

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

The PR approach should change IMO. The Rust side supports ui_port on TemporalDevServerConfig, this should be plumbed through the bridge. Extra args should not be touched. And arguably, we shouldn't prefix this option with dev_server_. Can look at .NET or Ruby for inspiration.

Copy link
Author

Choose a reason for hiding this comment

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

@tconley1428 @cretz thanks for the review. I’ve taken a look at the Ruby implementation and am leveraging the Rust bridge. Next time, I’ll ask for more guidance before implementing the PR. Sorry about that.

Copy link
Contributor

@tconley1428 tconley1428 left a comment

Choose a reason for hiding this comment

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

There are a number of linting errors which would need to be fixed.

@Lujeni Lujeni force-pushed the feat/748 branch 2 times, most recently from 98e6da1 to e28a190 Compare January 17, 2026 20:38
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.

[Feature Request] Allow customization of dev server UI port

3 participants