Commit graph

175 commits

Author SHA1 Message Date
da7d912a0c Tor profile cleanup and error handling. Moved more functions out of ConnectionController 2026-11-01 17:42:48 -05:00
257bb952f7 Session wireguard profiles switched over to the new state management system 2026-11-01 16:46:27 -05:00
57206dde46 Singbox dependency check in the launcher, forwards to GUI error handler to coordinate setup 2026-10-30 08:55:02 -04:00
0b065fb025 Solved a bug with connections after ticket use, which previously had a threading issue on reconnect. That threading bug had the reconnect hit up wireguard key renegotiation multiple times, causing a subscription error on one of those threads. Now instead, session profiles are still started via a background thread, but when closed via the external X11 window, they trigger a notification to the main UI with @mainthread to disconnect it. This is a temporary workaround to the pre-existing issues with SessionState process management, until that SessionState module can be refactored. 2026-10-29 10:17:38 -04:00
9022c1ff05 Only use controller to modify system state, never the model directly, because it bypasses the repo 2026-10-27 17:08:14 -04:00
295f34c8f9 Plumbing and wireguard loop fixed, via using the controller only to modify systemstate, and fixing a bug in the plumbing for the 'no option' functions being run without execute 2026-10-27 17:05:20 -04:00
e73512770c State Repo is the one to flip on systemwide UI. Which forces state to match visuals 2026-10-27 09:33:17 -04:00
b6275269b5 Result Error Chain Ledger 2026-10-26 21:37:28 -04:00
958c906f30 Respawn ticket use working 2026-10-26 18:45:01 -04:00
f53661fc60 Improved Systemwide Wireguard Error Flow, to cache each stage of progress to the end of the loop, and prompt the user on each choice. 2026-10-25 20:55:19 -04:00
14e257d091 systemwide wg goes connect -> test -> location check -> mtu check -> port check -> wg renegotiate 2026-10-25 14:25:09 -04:00
25d69d728c Plumbing switched to regular thread (not executor). Introduced Port checking and changing as part of wireguard failure 2026-10-25 09:35:50 -04:00
d7f953b907 Improved UI feedback on connections, sync, and use of tickets. 2026-10-24 16:22:52 -04:00
c4a3e6c948 Improved UI feedback on connections. And new plumbing UI data structure and prompts for stacktrace errors 2026-10-24 13:13:06 -04:00
68c47f9a8c broken imports and reduced logger clutter on startup 2026-10-24 11:48:43 -04:00
70ed33bb5b disconnect notifications 2026-10-23 20:05:54 -04:00
bf9063b1f8 Refactor of Ticket flow. Stable to get confirmed Result via CLI. Not yet GUI 2026-10-23 19:32:12 -04:00
8dca35d5c9 New payment flow confirms paid status and updates. Solved the previous issue with repeat invoices attempting to get a new invoice but being told its paid without an invoice. 2026-10-23 16:05:59 -04:00
00ef301baf Relying on end_singbox now, instead of a dedicated helper for mini-takedown 2026-10-22 21:50:43 -04:00
8a72ae76fd Fixed a bug in teardown of failed attempt, to properly kill firewall 2026-10-22 21:49:24 -04:00
f54ed5686a Use of a pre-existing billing code, to then connect 2026-10-22 21:20:59 -04:00
b68d1ea6bd removal of unused importS 2026-10-22 16:00:44 -04:00
19e8a34730 Move singbox launch to isolated module. And refactor the runner to use smaller helper functions. 2026-10-22 15:27:38 -04:00
587c72f4c3 async ip address calls 2026-10-22 13:37:27 -04:00
af368db8b7 Ticket Refactor to accept ServerReply objects, and keep the internal flow returning Result objects 2026-10-22 03:31:33 -04:00
2208cedb7e Introduced Location & MTU testing on systemwide Wireguard. As well as IP address testing instead of the previous method. Additionally, 400 status APIs now pass through the APIResponse layer as True to be evaluated by the SeverReply Layer. Finally notifications are better integrated to convey the testing rounds to the end user. 2026-10-21 13:37:21 -04:00
d2e75ca0e1 Notifications for Payment Related actions 2026-10-20 18:29:56 -04:00
6162d000c6 Improved error handling for billing conflicts of individual profiles at the same time 2026-10-20 15:42:13 -04:00
ed517f4568 Direct httpx2 IP address checking, instead of subprocess for connection tests. 2026-10-19 21:36:22 -04:00
a7b733db0d Functions added for wiping tickets when expired (the entire ticket cycle). Also general error fixing for the payments flow 2026-10-19 19:44:23 -04:00
840c2ccb58 Improved State Management integrated with the UI upgrades, to evaluate failed zombie systemwide connections. And then prompt the user if they'd like to evaluate them for re-use, or close it. 2026-10-19 16:32:43 -04:00
fcace28890 Introduced a Global State Management system, with a repo cache and notifications to the UI. 2026-10-18 21:16:52 -04:00
f59c39be6e Minor Import fixes 2026-10-17 17:17:23 -04:00
5023b09928 Isolated error translation to it's own module. Finality to ticket payments and the ticket prep changing the Config 2026-10-17 17:13:42 -04:00
9ca0809ceb Stable repeat Ticketing flow 2026-10-17 14:24:06 -04:00
1f4b37dbe9 Improved Multi-payment-cycle management. Moved check_paid and mark_paid to isolated service. Setup primary configuration to track ticket setup 2026-10-17 11:33:39 -04:00
e296e212db edit legacy comments 2026-10-16 18:07:26 -04:00
e8373cf0ab State is cached via a repo 2026-10-16 17:59:14 -04:00
469268651b Subscription expiration check tools 2026-10-16 15:12:25 -04:00
5dee318aa4 Wireguard now checks if it needs to disable singbox based on systemstate. Also eliminated content from profilecontroller that was no longer being used for subscriptions, and causing circular import issues 2026-10-15 19:30:34 -04:00
0931200c79 Fixing wireguard breaking due to changes in systemwide state from singbox kill checking wireguard first 2026-10-15 19:13:57 -04:00
6107a355f9 Improved singbox cleanup process. And added support for killing wireguard profiles inside end_singbox. 2026-10-15 19:02:47 -04:00
5dc1463862 Singbox on disable, checks if wireguard is active, and kills it 2026-10-15 16:20:44 -04:00
732b17fb4a Introduced new ProfileRepo to cache profiles. All profile access is now coordinated through the ProfileController. And the ProfileController's previous bloat mission-creep of connections, is now moved to it's own service repo 2026-10-15 12:10:49 -04:00
7ba8e1e6d3 Plumbing stable for GUI to call upon via inserted ENUM DICT 2026-10-13 21:19:49 -04:00
69f4e7114f Refactored billing to have core doing more, and GUI doing less. Also heavily relying upon the singleton pattern to transfer data between UI pages and core functions 2026-10-12 20:24:04 -04:00
9e4fd54eb6 Introduced MTU tools. MTU set for session configs automatically, for systemwide the testing is setup but not yet implemented. Also introduced server reply objects and a new v2 wg endpoint that doesn't require location codes. 2026-10-11 20:18:52 -04:00
10e46cd8ea New refactored Use of tickets and payment of tickets loops/state, integrated with existing system 2026-10-11 12:33:21 -04:00
6a445eba41 Ticket Inovices Stable with Big Bang Refactor. Still need to resolve issues with ticket billing invoice config already existing 2026-10-10 18:27:02 -04:00
f9698ced68 Support for multiple invoices being managed through a global payment cycle 2026-10-10 15:25:36 -04:00