Skip to content

feat: support multiple sessions while preserving console shortcuts - #275

Merged
KazuCocoa merged 3 commits into
masterfrom
feat/multi-session-console
Nov 22, 2026
Merged

KazuCocoa merged 3 commits into
masterfrom
feat/multi-session-console

Conversation

@KazuCocoa

@KazuCocoa KazuCocoa commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Closes #84.

Existing commands (arc, arc init, and arc toml FILE) still start one session, support bare commands in the console and page objects, and close the session on exit. The console creates an independent driver with Appium::Driver.new(opts, false) and publishes it as $driver after startup. The exit hook closes the driver that the console started.

arc multi opens Pry without a default configuration or session. Users can keep several drivers in local variables and start, use, and quit each independently. The README includes a two-device example. This change sets the minimum appium_lib version to 17.0.0.

Verification

  • bundle exec rake test passed (8 tests, 46 assertions).
  • bundle exec rake rubocop passed.
  • CLI tests use real appium_lib wrappers with offline sessions. They cover bare commands and the global alias in the default console, and independent command routing after closing one of two sessions in multi mode.

@KazuCocoa KazuCocoa changed the title feat: add a console for managing multiple sessions feat!: use explicit drivers in the Appium console Nov 22, 2026
@KazuCocoa KazuCocoa changed the title feat!: use explicit drivers in the Appium console feat: support multiple sessions while preserving console shortcuts Nov 22, 2026
@KazuCocoa
KazuCocoa merged commit f0e9be6 into master Nov 22, 2026
2 checks passed
@KazuCocoa
KazuCocoa deleted the feat/multi-session-console branch November 22, 2026 06:51
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.

Run the console without global scope driver to be able to manage multiple sessions from the console

1 participant