█ you
█refactor the submission path and run tests
pi
Reworking delivery resolution, then verifying.
▾ edit session.lua +12 −3 ↵ compare
│38 - local busy = status.is_busy( self.status )
│38 + local busy, delivery = resolve( self, options )
│39 + if busy and not delivery then return queue(…)
▸ bash just test ✓ 669 passed 4.7s
│Testing: tests/bugabinga/pivi/…
│Success: 669 Failed: 0 Errors: 0
│… 2140 lines truncated · full output
▸ grep is_busy 7 matches · 3 files → quickfix
│session.lua
│409 local busy = is_busy( self.status )
│status.lua
│140 local function is_busy( state )
▸ read command.lua 120 lines
│1 local session = require 'bugabinga.pivi.session'
│2 local notify = require 'std.notify'
│… open file
write /etc/hosts ✗ permission denied
session.luacomparison · q close
37 local options = options or {}
38 - local busy = status.is_busy(self)
38 + local busy, delivery =
39 + resolve( self, options )
40 if busy and not delivery then