дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
Importing Claude Code / Codex sessions started outside OpenIDEA was only reachable from the history popup of a docked session and imported one row at a time. A new Import Sessions from Other Apps… action is listed in the Agents tool window's options menu and in the empty task list. It opens a chooser that rescans on open, filters by title or folder, selects several sessions (modifier-click, Shift-click, Cmd/Ctrl-A, Select All) and imports them in one go: a single session opens as before, several are added to the list without opening tabs, failures are reported together, and Cancel stops the batch after the import in flight. The set of sessions being imported now lives in the store, so neither the chooser nor the docked popup can import a session twice, and late scan results after a project switch are dropped. Co-authored-by: janoskranczler <[email protected]>
266 рядки
4.7 KiB
CSS
266 рядки
4.7 KiB
CSS
.view {
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
/* A session editor tab hovers over the tool window: it will dock here. */
|
|
.dropTarget {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.loading {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.groupLabel {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.count {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-tiny);
|
|
}
|
|
/* A task is being dragged over this group: dropping it puts the task there. */
|
|
.dropOver {
|
|
background: var(--bg-hover);
|
|
outline: 1px dashed var(--accent);
|
|
outline-offset: -1px;
|
|
}
|
|
.title {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.title[data-unread] {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.unreadDot {
|
|
flex: none;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
}
|
|
.taskProject {
|
|
flex: 0 0 auto;
|
|
max-width: 35%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.detail {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.age {
|
|
flex: none;
|
|
margin-left: auto;
|
|
padding-right: 8px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.ready {
|
|
color: var(--success);
|
|
}
|
|
.failed {
|
|
color: var(--danger);
|
|
}
|
|
.archived {
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
.empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 24px 12px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.link {
|
|
border: 0;
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.link:hover {
|
|
color: var(--link-hover);
|
|
}
|
|
|
|
.statusItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 100%;
|
|
padding: 0 6px;
|
|
border: 0;
|
|
border-radius: var(--radius-small);
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.statusItem:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.statusPart {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
/* A docked conversation owns the tool window; history opens on demand. */
|
|
.docked {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.dockedBar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.dockedTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 600;
|
|
}
|
|
.dockedSession {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.tasks {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
/* Sits in the list like a tree row: no frame at rest, a fill on hover and a ring while typing. */
|
|
.taskSearch {
|
|
flex: none;
|
|
height: var(--h-list-row);
|
|
margin: 2px var(--tree-inset, 6px) 2px;
|
|
border-radius: var(--radius-selection, 5px);
|
|
transition: background var(--dur-fast) var(--ease);
|
|
}
|
|
.taskSearch:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.taskSearch:focus-within {
|
|
background: var(--bg-field, var(--bg-button));
|
|
box-shadow: inset 0 0 0 1px var(--focus-ring);
|
|
}
|
|
.history {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(400px, calc(100vw - 24px));
|
|
height: min(420px, 65vh);
|
|
overflow: hidden;
|
|
}
|
|
.historyTitle {
|
|
flex: none;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
}
|
|
/* Imported sessions below the task list: compact rows, not growing space. */
|
|
.external {
|
|
flex: none;
|
|
overflow-y: auto;
|
|
padding: 4px 12px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.external > .row {
|
|
flex: none;
|
|
}
|
|
|
|
/* Import Sessions from Other Apps: filter above a fixed-height list, so the dialog doesn't grow. */
|
|
.chooser {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.chooserList {
|
|
height: 312px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
overflow: hidden;
|
|
}
|
|
.chooserList > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.chooserRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
width: 100%;
|
|
}
|
|
.chooserFooter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.chooserFolder {
|
|
flex: 0 0 auto;
|
|
max-width: 35%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.chooserHint {
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|