Skip to content

Ensure Kilo interactive sessions use the DAF session name as title #692

Closed

Description

@itdove

Bug Description

When a DAF session is launched with Kilo, Kilo can briefly report that the session has no title or open an untitled conversation. The native Kilo session should use the exact DAF session name as its title.

Analysis

  • devflow/agent/kilo_agent.py currently pre-creates a titled session through a short-lived kilo serve API and launches the full TUI with the returned session ID.
  • If pre-creation fails, the adapter logs a warning and launches the root kilo command without a title.
  • The installed Kilo 7.8.32 CLI exposes --title for kilo run, but not for the root full-TUI command, so the interactive fallback cannot set a title at launch.
  • Resume already attempts a best-effort title update, but new interactive launches have no equivalent post-capture recovery path.
  • Existing unit tests cover successful title pre-creation and the failure fallback, but not ensuring the eventual interactive session is titled after a transient API failure.

Acceptance Criteria

  • A new interactive Kilo launch displays and persists the exact DAF session name as the native Kilo session title.
  • Title setup remains scoped to the requested project directory and never attaches or renames a session from another project.
  • A transient title API failure has a safe retry or post-capture synchronization path; it must not silently leave a new session untitled when the native session can be identified.
  • Resume continues to synchronize the native title with the current DAF session name.
  • Regression tests cover API success, transient failure/recovery, project scoping, and the no-session-ID failure case without breaking interactive launch.

Environment

  • DevAIFlow: current main
  • Kilo CLI: 7.8.32
  • Agent mode: interactive full TUI

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    Implemented and validated Kilo interactive title recovery. Verified project-scoped native session capture now applies the exact DAF session name after title pre-creation failure, retries one transient post-capture title update, preserves resume synchronization, and leaves pending identity unchanged when no unique native ID is captured. Added regression coverage and updated Kilo support/workflow documentation. Validation: 45 focused Kilo/workflow tests passed, 44 lifecycle/title selections passed, 19 agent-factory tests passed, mypy passed across 214 files, and isolated integration tests passed 19/19.

  3. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    Pull request created: #698

  4. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    ✅ Session Complete

    Project: devaiflow
    Goal: #692: Ensure Kilo interactive sessions use the DAF session name as title
    Time Spent:
    0h 25m total

    • itdove: 0h 24m
    • unknown: 0h 1m
      Branch: 692

    No significant activity detected in this session.

    Session Notes:

    Session Notes: itdove-devaiflow-692

    JIRA: #692

    2026-11-20 22:22

    • Implemented Ensure Kilo interactive sessions use the DAF session name as title #692 Kilo interactive title recovery: verified project-scoped post-capture title synchronization now retries once after transient failure; added pre-creation fallback, retry, scoping, resume, and no-ID regressions; docs and workflow skill updated. Focused tests, mypy, and isolated integration suite pass.

    Generated by DevAIFlow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions