hiiro 0.1.288 → 0.1.289

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1892994eb2821a861267c2d98f2c16c6665fd49a78d453259fd0bb55d054f4c5
4
- data.tar.gz: a50041a914f2818ecd1b9fb16e6b3a4852ff1450d64315e5e7568931dc291f04
3
+ metadata.gz: 37466eb01d7284c838b3ba958f35a41e0f33f4f4fd5c22036ce11f2daa13bfb4
4
+ data.tar.gz: 55b421c1b3c124cc265d14c93f7709d0e2c894d4497125884306fbe53fe29762
5
5
  SHA512:
6
- metadata.gz: f03346bdf4edd48e03b18cacc6647bf3e32d6a73f12dceb4a7cc5ab85e4ae18055d6eaf40863175865f08ae3117ace92b1f19824aacb5ad4abec0f53690de38f
7
- data.tar.gz: 4bd162da75fd168c169417bb8ce37c7c3478fe020b1dc2bb8a28a1e3ca880e5973c61f43125be932a0bbc106a582647d7aece4ab6906f6fac9afeac9dff5c101
6
+ metadata.gz: dc41d3e7f2fc019d20336f0890dcff641d545a3bb25a6b83147fc1067b3a139a2548c498b8f9e825cbe7096c2a4d2d77706ed9e21d79b36b26459db54a2ea3f4
7
+ data.tar.gz: 403890caf1a18fe7b5c231b1fd12c2e4d07897867c8e46620441923f2860b4e5c0f7ab848105edb4c773a7d2724f5a4be4048e37155ec31bce78ea387f07fc1c
data/CHANGELOG.md CHANGED
@@ -1 +1,21 @@
1
- Done. CHANGELOG.md updated with v0.1.288 release for today (2026-03-26), with the PR check context limit fix moved from Unreleased. New empty Unreleased section ready for future changes.
1
+ ```markdown
2
+ ## v0.1.289 (2026-03-26)
3
+
4
+ ### Fixed
5
+ - `h queue run`/`watch`: frontmatter `session_name` now directly controls which tmux session the task launches in; working directory seeded from that session's active pane when no tree is specified
6
+ - `h queue sadd`: now immediately launches a new tmux window in the target session after adding to queue, consistent with `hadd`/`vadd` behavior (previously just added to pending with no launch)
7
+
8
+ ## v0.1.288 (2026-03-26)
9
+
10
+ ### Fixed
11
+ - `h pr ls` / `h pr update`: PRs with >100 checks now show accurate status. GraphQL query was using `contexts(last: 100)`, truncating check runs for PRs with 100+ checks and silently dropping failures that happened to fall outside the window. Increased limit to 250.
12
+
13
+ ## v0.1.287 (2026-03-26)
14
+
15
+ ### Added
16
+ - `h pr status`: show current branch PR checks summary (failures, pending, success counts)
17
+ - `h todo`: fuzzyfinder fallback for item selection when no exact match
18
+
19
+ ### Changed
20
+ - PR list now shows pending indicator alongside failures
21
+ ```
data/lib/hiiro/queue.rb CHANGED
@@ -155,27 +155,28 @@ class Hiiro
155
155
  tree_root = nil
156
156
 
157
157
  if prompt_obj
158
- if prompt_obj.task
159
- target_session = prompt_obj.session_name
160
- tree = prompt_obj.task.tree
161
- if tree
162
- working_dir = tree.path
163
- tree_root = tree.path
164
- end
165
- elsif prompt_obj.session
166
- target_session = prompt_obj.session.name
167
- working_dir = prompt_obj.session.path || working_dir
168
- elsif prompt_obj.session_name
169
- # Raw tmux session (not tracked in hiiro environment) — use name directly
170
- target_session = prompt_obj.session_name
158
+ fm = prompt_obj.frontmatter
159
+
160
+ # 1. Session: frontmatter session_name wins outright — no env lookup needed
161
+ raw_session = fm['session_name'].to_s
162
+ if !raw_session.empty?
163
+ target_session = raw_session
164
+ # Seed working_dir from the session's active pane (overridden by tree below if present)
165
+ pane_path = `tmux display-message -t #{Shellwords.shellescape(raw_session)}: -p '\#{pane_current_path}' 2>/dev/null`.strip
166
+ working_dir = pane_path if !pane_path.empty? && Dir.exist?(pane_path)
167
+ elsif prompt_obj.task
168
+ task_session = prompt_obj.task.session_name
169
+ target_session = task_session if task_session && !task_session.empty?
171
170
  end
172
171
 
173
- if prompt_obj.tree
174
- working_dir = prompt_obj.tree.path
175
- tree_root = prompt_obj.tree.path
172
+ # 2. Tree: sets both working_dir and tree_root (overrides session pane dir)
173
+ tree = prompt_obj.tree || prompt_obj.task&.tree
174
+ if tree
175
+ working_dir = tree.path
176
+ tree_root = tree.path
176
177
  end
177
178
 
178
- # Resolve app + dir frontmatter on top of whatever tree root we have
179
+ # 3. App + dir: resolve on top of tree root
179
180
  if prompt_obj.app_name
180
181
  env = Environment.current rescue nil
181
182
  app = env&.find_app(prompt_obj.app_name)
@@ -682,6 +683,8 @@ class Hiiro
682
683
 
683
684
  if split
684
685
  q.launch_in_pane(result[:name], split: split)
686
+ elsif session
687
+ q.launch_task(result[:name])
685
688
  else
686
689
  puts "Created: #{result[:path]}"
687
690
  end
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.288"
2
+ VERSION = "0.1.289"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.288
4
+ version: 0.1.289
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota