Skip to content

feat: new sessions upsert flows#280

Open
augustoccesar wants to merge 20 commits intonextfrom
ship/rework-sessions-flows
Open

feat: new sessions upsert flows#280
augustoccesar wants to merge 20 commits intonextfrom
ship/rework-sessions-flows

Conversation

@augustoccesar
Copy link
Copy Markdown
Member

The main goal of these changes is to move more of the responsibilities from the CLI to the Local Server and to the Worker.
So instead of doing so many orchestration, it moves the responsibilities closer to the owner of it.

For example, instead of the CLI making a request to both the Worker, then to the Local Server to create the session, and then later to the worker again to create the tunnel, now it makes one request to the Local Server. The Local Server then makes the request to the Worker which internally handles the creation of the tunnel and make sure that everything is in place before sending the information back.

Changes like the above made so that is a chunkier PR since quite a few things had to change for it to be possible.

augustoccesar and others added 15 commits April 21, 2026 08:04
# Conflicts:
#	local-server/src/handlers/sessions.rs
The abstraction of BackgroudService don't seem to be as important as before now that there are
only two of said services. Also they are quire rigid about how they share data, which is a problem
for the new architecture that we are going through where more of the infra creation will be on the
local server and then shared.

This hopefully simplifies it. The services are simple function calls that we can expand on its
params and that their params are not tied into the same constraints.

Also as part of this, removed the dynamic loading for booting. this also adds to the simplification
of it, but is not a blocker if we want to add the loading again instead of a "progress logging".
…flows

# Conflicts:
#	linkup-cli/src/services/cloudflare_tunnel.rs
#	linkup-cli/src/services/local_server.rs
#	linkup-cli/src/services/mod.rs
#	linkup-cli/src/state.rs
# Conflicts:
#	linkup-cli/src/commands/local.rs
#	linkup-cli/src/commands/remote.rs
#	linkup-cli/src/commands/start.rs
#	linkup-cli/src/services/local_server.rs
#	linkup-cli/src/state.rs
@augustoccesar augustoccesar self-assigned this Apr 24, 2026
@augustoccesar augustoccesar force-pushed the ship/rework-sessions-flows branch from 2dab76c to cb98b97 Compare April 24, 2026 08:25
@augustoccesar augustoccesar marked this pull request as ready for review April 24, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant