Skip to content

fix(linux): clamp window to display work area, bump version to 0.5.2 - #500

Open
Jeelsblog wants to merge 2 commits into
chaitanyagiri:mainfrom
Jeelsblog:fix/linux-window-sizing
Open

Jeelsblog wants to merge 2 commits into
chaitanyagiri:mainfrom
Jeelsblog:fix/linux-window-sizing

Conversation

@Jeelsblog

@Jeelsblog Jeelsblog commented Sep 11, 2026

Copy link
Copy Markdown

On small displays (e.g. 1440x810 laptops) the previous static defaults (DEFAULT_WIN: 1440x900, MIN_WIN: 1280x800) produced windows taller than the available work area after subtracting top/bottom system panels (~80px), causing the bottom AgentStrip and queue to be clipped behind the taskbar.

Changes:

  • Remove static DEFAULT_WIN / MIN_WIN height constants
  • Add getWorkAreaBounds() that reads screen.getPrimaryDisplay().workArea at runtime, so the limit always matches the actual usable screen pixels
  • Fix clampBounds() to cap width/height to workArea (previously it only enforced a floor, never a ceiling — saved oversized bounds survived)
  • Fix createWindow() to derive initial size from workArea and centre the window when no valid saved position exists
  • Lower absolute minimum to 900x600 for more flexibility on small screens
  • Bump package.json version from 0.4.6 to 0.5.2 to match the release tag

Fixes bottom-cutoff on 1440x810 and similar displays running Linux with visible taskbar panels (Zorin OS, Ubuntu, etc.).

What & why

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Docs
  • Build / CI

Evidence

Before

before

After

after

How I tested it

  • OS:
  • Steps:

Credit (optional)

Discord:

X:

Checklist

  • Before and after evidence is attached above, under both headings.
  • npm run typecheck passes.
  • npm run test:focused passes.
  • npm run build succeeds.
  • This PR is one change. Unrelated fixes belong in their own PR.
  • I read the diff myself before opening this, and there is no debug output,
    commented-out code, or unrelated formatting churn in it.
  • Any new UI derives from DESIGN.md / tokens.ts — no ad-hoc colors,
    spacing, or fonts.
  • If I added art, it's my own or compatibly licensed, and listed in
    ATTRIBUTION.md.

On small displays (e.g. 1440x810 laptops) the previous static defaults
(DEFAULT_WIN: 1440x900, MIN_WIN: 1280x800) produced windows taller than
the available work area after subtracting top/bottom system panels (~80px),
causing the bottom AgentStrip and queue to be clipped behind the taskbar.

Changes:
- Remove static DEFAULT_WIN / MIN_WIN height constants
- Add getWorkAreaBounds() that reads screen.getPrimaryDisplay().workArea
  at runtime, so the limit always matches the actual usable screen pixels
- Fix clampBounds() to cap width/height to workArea (previously it only
  enforced a floor, never a ceiling — saved oversized bounds survived)
- Fix createWindow() to derive initial size from workArea and centre the
  window when no valid saved position exists
- Lower absolute minimum to 900x600 for more flexibility on small screens
- Bump package.json version from 0.4.6 to 0.5.2 to match the release tag

Fixes bottom-cutoff on 1440x810 and similar displays running Linux with
visible taskbar panels (Zorin OS, Ubuntu, etc.).
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Evidence received. Before and after are both attached. Thanks — this is what makes a PR reviewable in one pass.

@chaitanyagiri

chaitanyagiri commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Thankyou so much, this is 500th pull request

… tokens

Every spawned worker session inherits the full MCP server catalog (Figma: 42
tools, Notion: 43, ClickUp: 58, Canva: 34, ...) and all bundled skills even
when the task needs none of them. On a typical setup this fixed overhead
consumes ~85,000–100,000 tokens before any work begins, leaving a worker with
a nominal 200K tokenCap with only ~100K of real working budget.

Changes:
- SpawnRequest: add optional mcpAllow (string[]) and skillsAllow (string[])
- AgentSpawnOptions: thread mcpAllow + skillsAllow into spawnAgentCore
- hive.ensureAgent opts: add mcpAllow + skillsAllow typed fields
- buildDefaultMcpServers: accept allow param; skip servers not in allowlist
- copyBundledSkills: accept allow param; copy only specified skill dirs
- hookSettings: pass allow through to buildDefaultMcpServers
- COMMANDS.md + identity-prompt spawn docs: document both fields, show
  tokenCap ≥ 500K guidance, and explain the ~85–100K bootstrap overhead

Backward-compatible: omitting both fields preserves current full-catalog behaviour.
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.

2 participants